diff options
author | Callum Prentice <callum@gmail.com> | 2016-12-07 08:43:51 -0800 |
---|---|---|
committer | Callum Prentice <callum@gmail.com> | 2016-12-07 08:43:51 -0800 |
commit | 70a42af076cbe6f12a265d508b4ed96af65d26ba (patch) | |
tree | b8dd5848d4703f6320eb69c0376c492fa3a16bbb /scripts | |
parent | 15c043ec20eeaa08de21c0aed4e122b5095a98b0 (diff) | |
parent | 232c3598547913ca6cb66593059497b413a9322c (diff) |
Automated merge with tip of lindenlab/oz_viewer64
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/packages-formatter.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/packages-formatter.py b/scripts/packages-formatter.py index 928d340b69..f91f5819b7 100755 --- a/scripts/packages-formatter.py +++ b/scripts/packages-formatter.py @@ -29,6 +29,12 @@ import sys 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 @@ for line in copyrights: 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]]) |