diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-08 08:04:51 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-08 08:04:51 -0800 |
commit | a903130496e71ea84e9f049a328f7b839165914e (patch) | |
tree | 70f55041befcb55267f8fd97fb6fa1bf754aa960 /version.sh | |
parent | ca1660534e00cef90b9ab0686afc98f1521fe828 (diff) |
Use % for ~ in tagged versions.v1.1.0%b1
Diffstat (limited to 'version.sh')
-rwxr-xr-x | version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |