From: Jay Freeman (saurik) Date: Wed, 1 Dec 2010 15:03:18 +0000 (-0800) Subject: Add a ~srk to the version if !ForRelease. X-Git-Tag: v1.1.0%b1~453 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/991d7f6c5637f27563b2e0bc9d8cb9397126b5f4 Add a ~srk to the version if !ForRelease. --- diff --git a/version.sh b/version.sh index 1cbbfbf8..1e204f31 100755 --- a/version.sh +++ b/version.sh @@ -1,2 +1,4 @@ #!/bin/bash -git describe --tags --dirty="+" --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@' +echo -n "$(git describe --tags --dirty="+" --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@')" +grep '#define ForRelease 0' MobileCydia.mm &>/dev/null && echo -n '~srk' +echo