diff options
author | Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> | 2013-02-16 23:54:17 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-16 15:41:58 -0800 |
commit | 727ee3aa980d505b0381ab3a0e574ca5d7094451 (patch) | |
tree | 031af62c0cf3e4596ba4cff1d6ed7298191d3398 /packaging/macosx | |
parent | 2d8a203026b47877320104e9f7597b462c016081 (diff) | |
download | subsurface-727ee3aa980d505b0381ab3a0e574ca5d7094451.tar.gz |
Unified handling of version extraction.
Removed oddly named and ridiculously outdated documentation text (scripts).
Created new directory 'scripts'.
Added unified version extraction script (scripts/get-version). Yes, it's
more shell script code but faster and more maintainable than the sed commands
and the swearwords/regexps repeated over and over again.
Makefile and packaging/macosx/make-package.sh modified accordingly.
I don't do windos neither macos but, AFAICS my tests show, it should be safe.
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/macosx')
-rwxr-xr-x | packaging/macosx/make-package.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/macosx/make-package.sh b/packaging/macosx/make-package.sh index 0556ecb84..c9558b36f 100755 --- a/packaging/macosx/make-package.sh +++ b/packaging/macosx/make-package.sh @@ -24,7 +24,7 @@ PREFIX="/Applications/Subsurface.app/Contents/Resources" INFOPLIST=./packaging/macosx/Info.plist # same git version magic as in the Makefile -VERSION=`git describe --tags --abbrev=12 | sed 's/v\([0-9]*\)\.\([0-9]*\)-\([0-9]*\)-.*/\1.\2.\3/ ; s/v\([0-9]\)\.\([0-9]*\)/\1.\2.0/' || echo "git.missing.please.hardcode.version"` +VERSION=$(./scripts/get-version darwin) # gtk-mac-bundler allegedly supports signing by setting this environment # variable, but this fails as we change the shared objects below and all |