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 | |
parent | c6cf66c7b507793449127afb9631b62208b534b1 (diff) |
Version number change should rebuild user agent code.
-rw-r--r-- | MobileCydia.mm | 1 | ||||
-rw-r--r-- | makefile | 4 | ||||
-rwxr-xr-x | version.sh | 7 |
3 files changed, 10 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 3d92930..4b69cb4 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -206,6 +206,7 @@ void PrintTimes() { #define _end } /* }}} */ +#include "Version.h" #define Cydia_ CYDIA_VERSION #define lprintf(args...) fprintf(stderr, args) @@ -63,8 +63,6 @@ version := $(shell ./version.sh) gxx := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-$(gcc) cycc = $(gxx) -mthumb -arch armv6 -o $@ -mcpu=arm1176jzf-s -miphoneos-version-min=2.0 -isysroot $(sdk) -idirafter /usr/include -F{sysroot,}/Library/Frameworks -flags += -DCYDIA_VERSION='"$(version)"' - dirs := Menes CyteKit Cydia SDURLCache code := $(foreach dir,$(dirs),$(wildcard $(foreach ext,h hpp c cpp m mm,$(dir)/*.$(ext)))) @@ -108,6 +106,8 @@ Objects/%.o: %.mm $(header) @echo "[cycc] $<" @$(cycc) -c -o $@ $< $(flags) $(xflags) +Objects/MobileCydia.o: version.h + Images/%.png: %.png @mkdir -p $(dir $@) @echo "[pngc] $<" @@ -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}" |