diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-09 02:51:01 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-09 03:30:21 -0800 |
commit | e61d7bfc30f71596ebf02d02695d80c4688c803d (patch) | |
tree | 50a11c6930c67fe318ad1cfd06d8aa127feaa1f6 /version.sh | |
parent | c6cf66c7b507793449127afb9631b62208b534b1 (diff) |
Version number change should rebuild user agent code.
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}" |