From 254fbd906be0d927f1a456e80a8add41d7aa9068 Mon Sep 17 00:00:00 2001 From: Raul Cuza Date: Wed, 6 Jul 2011 16:22:37 -0400 Subject: Add code to modify osx/Makefile directly so version is no longer discovered. osx/Makefile will now have the version variables set when the repo is tagged like other package directories. --- tools/export2.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/export2.py b/tools/export2.py index 780462523..dd5816cab 100755 --- a/tools/export2.py +++ b/tools/export2.py @@ -191,7 +191,15 @@ E.G. 1.2.0pre1 is a valid version. dryrun=options.dryrun) # update osx Makefile find_and_replace('osx/Makefile', 'BCFGVER =', - 'BCFGVER = \'%s\'\n' % (version), + 'BCFGVER = %s\n' % (version), + startswith=True, + dryrun=options.dryrun) + find_and_replace('osx/Makefile', 'MAJOR =', + 'MAJOR = %s\n' % (version_info['major']), + startswith=True, + dryrun=options.dryrun) + find_and_replace('osx/Makefile', 'MINOR =', + 'MINOR = %s.%s\n' % (version_info['minor'], version_info['micro']), startswith=True, dryrun=options.dryrun) -- cgit v1.2.3-1-g7c22