Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
3a8aa2d1
Commit
3a8aa2d1
authored
8 years ago
by
Oz Linden
Browse files
Options
Downloads
Patches
Plain Diff
add viewer channel and version to the beginning of the About box Licenses information
parent
8a461c00
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/cmake/BuildPackagesInfo.cmake
+1
-1
1 addition, 1 deletion
indra/cmake/BuildPackagesInfo.cmake
scripts/packages-formatter.py
+9
-3
9 additions, 3 deletions
scripts/packages-formatter.py
with
10 additions
and
4 deletions
indra/cmake/BuildPackagesInfo.cmake
+
1
−
1
View file @
3a8aa2d1
...
...
@@ -6,5 +6,5 @@ add_custom_command(OUTPUT packages-info.txt
COMMENT Generating packages-info.txt for the about box
MAIN_DEPENDENCY
${
CMAKE_SOURCE_DIR
}
/../autobuild.xml
DEPENDS
${
CMAKE_SOURCE_DIR
}
/../scripts/packages-formatter.py
COMMAND
${
PYTHON_EXECUTABLE
}
${
CMAKE_SOURCE_DIR
}
/../scripts/packages-formatter.py > packages-info.txt
COMMAND
${
PYTHON_EXECUTABLE
}
${
CMAKE_SOURCE_DIR
}
/../scripts/packages-formatter.py
"
${
VIEWER_CHANNEL
}
"
"
${
VIEWER_SHORT_VERSION
}
.
${
VIEWER_VERSION_REVISION
}
"
> packages-info.txt
)
This diff is collapsed.
Click to expand it.
scripts/packages-formatter.py
+
9
−
3
View file @
3a8aa2d1
...
...
@@ -29,6 +29,12 @@
import
errno
import
re
import
subprocess
import
argparse
parser
=
argparse
.
ArgumentParser
(
description
=
'
Format dependency version and copyright information for the viewer About box content
'
)
parser
.
add_argument
(
'
channel
'
,
help
=
'
viewer channel name
'
)
parser
.
add_argument
(
'
version
'
,
help
=
'
viewer version number
'
)
args
=
parser
.
parse_args
()
_autobuild
=
os
.
getenv
(
'
AUTOBUILD
'
,
'
autobuild
'
)
...
...
@@ -50,9 +56,8 @@ def autobuild(*args):
# Don't attempt to interpret anything but ENOENT
raise
# Here it's ENOENT: subprocess can't find the autobuild executable.
print
>>
sys
.
stderr
,
"
packages-formatter on %s: can
'
t run autobuild:
\n
%s
\n
%s
"
%
\
(
sys
.
platform
,
'
'
.
join
(
command
),
err
)
sys
.
exit
(
1
)
sys
.
exit
(
"
packages-formatter on %s: can
'
t run autobuild:
\n
%s
\n
%s
"
%
\
(
sys
.
platform
,
'
'
.
join
(
command
),
err
))
# no exceptions yet, let caller read stdout
return
child
.
stdout
...
...
@@ -84,6 +89,7 @@ def autobuild(*args):
else
:
sys
.
exit
(
"
Unrecognized --copyrights output: %s
"
%
line
)
print
"
%s %s
"
%
(
args
.
channel
,
args
.
version
)
print
viewer_copyright
for
pkg
in
sorted
(
version
):
print
'
:
'
.
join
([
pkg
,
version
[
pkg
]])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment