summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-08 08:04:51 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-08 08:04:51 -0800
commita903130496e71ea84e9f049a328f7b839165914e (patch)
tree70f55041befcb55267f8fd97fb6fa1bf754aa960
parentca1660534e00cef90b9ab0686afc98f1521fe828 (diff)
Use % for ~ in tagged versions.v1.1.0%b1
-rwxr-xr-xversion.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/version.sh b/version.sh
index 3d2ce58..59d63cc 100755
--- a/version.sh
+++ b/version.sh
@@ -6,7 +6,7 @@ else
flags=("$@")
fi
-version=$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@')
+version=$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@;s@%@~@g')
if grep '#define ForRelease 0' MobileCydia.mm &>/dev/null; then
version=${version}~srk