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-Url: https://git.saurik.com/cydia.git/commitdiff_plain/88006baecbc7e5bd98f973ef25cf5dd8e878e8b4?ds=inline 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