]> git.saurik.com Git - uikittools.git/commitdiff
Move to git-oriented build environment.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 3 Dec 2010 09:58:37 +0000 (09:58 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 3 Dec 2010 09:58:37 +0000 (09:58 +0000)
.gitignore [new file with mode: 0644]
control
control.sh [new file with mode: 0755]
makefile
version.sh [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..bef8e3b
--- /dev/null
@@ -0,0 +1,9 @@
+*.deb
+_
+debs
+gssc
+sbdidlaunch
+uicache
+uiduid
+uiopen
+uishoot
diff --git a/control b/control
index 4c0ecf89bd965130a0f0eadb005651c96b00b300..328d4f58c7d64d5316a44b3fda9dca9d7830e98b 100644 (file)
--- a/control
+++ b/control
@@ -1,12 +1,12 @@
 Package: uikittools
 Priority: optional
 Section: Utilities
-Installed-Size: %S
 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 Architecture: iphoneos-arm
-Version: 1.0.3231-1
+Version: 
 Description: UIKit/GraphicsServices command line access
 Name: UIKit Tools
 Author: Jay Freeman (saurik) <saurik@saurik.com>
 Depiction: http://cydia.saurik.com/info/uikittools/
 Depends: coreutils-bin
+Tag: purpose::console, role::hacker
diff --git a/control.sh b/control.sh
new file mode 100755 (executable)
index 0000000..537cb66
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+dir=$1
+dir=${dir:=_}
+sed -e "s@^\(Version:\).*@\1 $(./version.sh)@" control
+echo "Installed-Size: $(du -s "${dir}" | cut -f 1)"
index 7e6f0b9e0ddfbe70a13f3933c8765459ec2948cc..08d8b3763a4c97c4c11aced2f04c9cba8bcd9643 100644 (file)
--- a/makefile
+++ b/makefile
@@ -12,10 +12,12 @@ clean:
        ldid -S $@
 
 package: all
-       rm -rf package
-       mkdir -p package/usr/bin
-       cp -a $(uikittools) package/usr/bin
-       mkdir -p package/DEBIAN
-       cp -a control package/DEBIAN
-       rpl '%S' "$$(du -ks package | cut -d $$'\t' -f 1)" package/DEBIAN/control
-       dpkg-deb -b package uikittools_$(shell grep ^Version: control | cut -d ' ' -f 2)_iphoneos-arm.deb
+       rm -rf _
+       mkdir -p _/usr/bin
+       cp -a $(uikittools) _/usr/bin
+       mkdir -p _/DEBIAN
+       ./control.sh _ >_/DEBIAN/control
+       mkdir -p debs
+       ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
+       dpkg-deb -b _ uikittools.deb
+       readlink uikittools.deb
diff --git a/version.sh b/version.sh
new file mode 100755 (executable)
index 0000000..1e204f3
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+echo -n "$(git describe --tags --dirty="+" --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@')"
+grep '#define ForRelease 0' MobileCydia.mm &>/dev/null && echo -n '~srk'
+echo