From: Jay Freeman (saurik) Date: Tue, 8 Mar 2011 16:04:51 +0000 (-0800) Subject: Use % for ~ in tagged versions. X-Git-Tag: v1.1.0%b1^0 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/a903130496e71ea84e9f049a328f7b839165914e Use % for ~ in tagged versions. --- diff --git a/version.sh b/version.sh index 3d2ce58d..59d63cc1 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