summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-24 08:47:44 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:15 -0800
commit1571ba628b9027d69c61d4cb58be0ed11bc0bc6a (patch)
tree07f9a5d9d51d9d30ed26186a4cee9c20afb59d00
parenta374f380c053a1a8cb266cb3c6ebdf16618d8154 (diff)
DHowett told me I forgot this critical file. :(
-rwxr-xr-xVersion.h.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/Version.h.sh b/Version.h.sh
new file mode 100755
index 0000000..2931369
--- /dev/null
+++ b/Version.h.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+version=$(./version.sh)
+
+new="#define Cydia_ \"${version}\""
+old=$(cat Version.h 2>/dev/null)
+
+if [[ ${old} != ${new} ]]; then
+ echo "${new}" >Version.h
+fi