X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/a903130496e71ea84e9f049a328f7b839165914e..6ac6e186a06688acccfedb972ad264685e3a4157:/version.sh diff --git a/version.sh b/version.sh index 59d63cc1..3c95ec71 100755 --- a/version.sh +++ b/version.sh @@ -12,4 +12,11 @@ if grep '#define ForRelease 0' MobileCydia.mm &>/dev/null; then version=${version}~srk fi +define="#define CYDIA_VERSION \"${version}\"" +before=$(cat Version.h 2>/dev/null) + +if [[ ${before} != ${define} ]]; then + echo "${define}" >Version.h +fi + echo "${version}"