]> git.saurik.com Git - cydia.git/blobdiff - version.sh
iOS 7's UILocalizedIndexedCollation fails Chinese.
[cydia.git] / version.sh
index 59d63cc15def45edbe942e8f931afe61338cb433..3c95ec71093ac6e38117c07f8487fee9f9f52e26 100755 (executable)
@@ -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}"