From 727ee3aa980d505b0381ab3a0e574ca5d7094451 Mon Sep 17 00:00:00 2001 From: Cristian Ionescu-Idbohrn Date: Sat, 16 Feb 2013 23:54:17 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- packaging/macosx/make-package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging/macosx') 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 -- cgit v1.2.3-70-g09d2