diff options
-rwxr-xr-x | Version.h.sh | 10 |
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 |