From 7c3b4d9a5a66e3826f4f9c071d137daf8c234c57 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 8 Jul 2014 06:04:14 -0700 Subject: [PATCH] Embed Cycript git version in zip package filename. --- xcode.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xcode.mk b/xcode.mk index f651721..2a135bc 100644 --- a/xcode.mk +++ b/xcode.mk @@ -26,6 +26,7 @@ lipo := $(shell xcrun --sdk iphoneos -f lipo) version := $(shell git describe --always --tags --dirty="+" --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$$@+\1.\2@;s@^v@@;s@%@~@g') deb := cycript_$(version)_iphoneos-arm.deb +zip := cycript_$(version).zip cycript := cycript += Cycript.lib/cycript @@ -47,12 +48,13 @@ links += Cycript.lib/cycript0.9 all: cycript $(cycript) $(framework) -cycript.zip: all +$(zip): all rm -f $@ zip -r9y $@ cycript Cycript.lib Cycript-{ios,mac}.framework $(patsubst %,--exclude %,$(links)) zip -r9 $@ $(links) -package: cycript.zip +zip: $(zip) + ln -sf $< cycript.zip $(deb): Cycript.lib/cycript Cycript.lib/libcycript.dylib rm -rf package -- 2.50.0