summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-01 07:03:18 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-01 07:03:18 -0800
commit991d7f6c5637f27563b2e0bc9d8cb9397126b5f4 (patch)
tree998303cad9e72d2b9a6c6f545aa9bcac36eea7f9
parentbcccf498d65a2328a14a0ea32bac2a7154e8a08a (diff)
Add a ~srk to the version if !ForRelease.
-rwxr-xr-xversion.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/version.sh b/version.sh
index 1cbbfbf..1e204f3 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