diff --git a/TOOLS/osxbundle.py b/TOOLS/osxbundle.py index 98699e478b..55aad53ddd 100755 --- a/TOOLS/osxbundle.py +++ b/TOOLS/osxbundle.py @@ -42,17 +42,14 @@ def sign_bundle(binary_name): sh('codesign --force --deep -s - ' + bundle_path(binary_name)) def bundle_version(): + version = 'UNKNOWN' if os.path.exists('VERSION'): x = open('VERSION') version = x.read() x.close() - else: - version = sh("./version.sh").strip() return version def main(): - version = bundle_version().rstrip() - usage = "usage: %prog [options] arg" parser = OptionParser(usage) parser.add_option("-s", "--skip-deps", action="store_false", dest="deps", @@ -66,6 +63,8 @@ def main(): else: binary_name = args[0] + version = bundle_version().rstrip() + print("Creating Mac OS X application bundle (version: %s)..." % version) print("> copying bundle skeleton") copy_bundle(binary_name)