diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-01 07:03:18 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-01 07:03:18 -0800 |
commit | 991d7f6c5637f27563b2e0bc9d8cb9397126b5f4 (patch) | |
tree | 998303cad9e72d2b9a6c6f545aa9bcac36eea7f9 | |
parent | bcccf498d65a2328a14a0ea32bac2a7154e8a08a (diff) |
Add a ~srk to the version if !ForRelease.
-rwxr-xr-x | version.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |