diff options
Diffstat (limited to 'version.sh')
-rwxr-xr-x | version.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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}" |