mkdir -p package/System/Library/LaunchDaemons
#cp -a com.saurik.Cyrver.plist package/System/Library/LaunchDaemons
mkdir -p package/Library/MobileSubstrate/DynamicLibraries
- if [[ -e Settings.plist ]]; then \
- mkdir -p package/Library/PreferenceLoader/Preferences; \
- cp -a Settings.png package/Library/PreferenceLoader/Preferences/CycriptIcon.png; \
- cp -a Settings.plist package/Library/PreferenceLoader/Preferences/Cycript.plist; \
- fi
- if [[ -e Tweak.plist ]]; then cp -a Tweak.plist package/Library/MobileSubstrate/DynamicLibraries/Cycript.plist; fi
cp -a Cycript.$(dll) package/Library/MobileSubstrate/DynamicLibraries
uname_s := Darwin
uname_p := arm
paths := ~/menes/mobilesubstrate
+restart := ./iPhone.sh
include makefile
-PKG_ARCH=iphoneos-arm /apl/tel/exec.sh :apr-lib:libffi:readline:sqlite3 make -f iPhone.mk
+#!/usr/bin/env bash
+PKG_ARCH=iphoneos-arm /apl/tel/exec.sh :apr-lib:libffi:readline:sqlite3 make -f iPhone.mk "$@"
console := $(apr) -lreadline
depends :=
-ifndef uname_s
-uname_s := $(shell uname -s)
-endif
-
-ifndef uname_p
-uname_p := $(shell uname -p)
-endif
+restart ?= $(MAKE)
+uname_s ?= $(shell uname -s)
+uname_p ?= $(shell uname -p)
-include $(uname_s).mk
-include $(uname_s)-$(uname_p).mk
rm -rf package
mkdir -p package/DEBIAN
sed -e 's/&/$(foreach depend,$(depends),$(depend),)/;s/,$$//;s/#/$(svn)/;s/%/$(arch)/' control >package/DEBIAN/control
- $(MAKE) extra
+ $(restart) extra
mkdir -p package/usr/{bin,lib,sbin}
cp -a libcycript.$(dll) package/usr/lib
cp -a cycript package/usr/bin