From 0015afd059926d966f145f4410d3f09415c83535 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 5 Jan 2016 12:24:50 +0100 Subject: bundle: remove git sha from the Info.plist version Fixes #2677 --- TOOLS/osxbundle.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'TOOLS/osxbundle.py') diff --git a/TOOLS/osxbundle.py b/TOOLS/osxbundle.py index 3ad52cb003..e9ef8bc4de 100755 --- a/TOOLS/osxbundle.py +++ b/TOOLS/osxbundle.py @@ -39,8 +39,17 @@ def apply_plist_template(plist_file, version): for line in fileinput.input(plist_file, inplace=1): print (line.rstrip().replace('${VERSION}', version)) +def bundle_version(): + if os.path.exists('VERSION'): + x = open('VERSION') + version = x.read() + x.close() + else: + version = sh("./version.sh").strip() + return version + def main(): - version = sh("./version.sh").strip() + version = bundle_version().rstrip() usage = "usage: %prog [options] arg" parser = OptionParser(usage) -- cgit v1.2.3