From: Ian Jackson Date: Fri, 27 Aug 2010 22:36:18 +0000 (+0100) Subject: add "-local" to version string when tree is locally modified X-Git-Tag: 0.9.8~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=jarrg-ian.git;a=commitdiff_plain;h=ed11a51af17849a5cb3cb3bfa9342d7c26d15856 add "-local" to version string when tree is locally modified --- diff --git a/build-sh b/build-sh index 2ecb974..572996e 100755 --- a/build-sh +++ b/build-sh @@ -14,6 +14,10 @@ esac export JAVA_HOME revision=`git describe --always || echo '(unknown revision)'` +if [ x"`git diff 2>/dev/null || echo x`" != x ]; then + revision="$revision-local" +fi + cat >src/com/tedpearson/ypp/market/Version.java <