X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/75896941dcc686055fe7ac8e6a86d54a69aac216..7c8912f8ff4f724dd7a66218d0f871ea81317fbf:/version.sh diff --git a/version.sh b/version.sh index 7fcf1515..3d2ce58d 100755 --- a/version.sh +++ b/version.sh @@ -6,6 +6,10 @@ else flags=("$@") fi -echo -n "$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@')" -grep '#define ForRelease 0' MobileCydia.mm &>/dev/null && echo -n '~srk' -echo +version=$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@') + +if grep '#define ForRelease 0' MobileCydia.mm &>/dev/null; then + version=${version}~srk +fi + +echo "${version}"