]> git.saurik.com Git - winterboard.git/commitdiff
The old test.sh was for Telesphoreo: I hate OS X.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 13 Jan 2014 16:44:21 +0000 (08:44 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 13 Jan 2014 16:44:21 +0000 (08:44 -0800)
Test.sh

diff --git a/Test.sh b/Test.sh
index 72874272e37c256139114167666a7292d401e446..df147555fa6f303617f4cf331eaaddb4c6ccf23a 100755 (executable)
--- a/Test.sh
+++ b/Test.sh
@@ -1,6 +1,17 @@
 #!/bin/bash
-rm -f WinterBoard.dylib
 set -e
-rsync --exclude .svn -SPaz 'saurik@carrier.saurik.com:menes/winterboard/{WinterBoard{,.dylib},UIImages}' .
-rsync --exclude .svn -SPaz 'saurik@carrier.saurik.com:menes/winterboard/*.theme' /Library/Themes/
-#killall SpringBoard
+
+ip=$1
+app=$2
+
+if [[ -z $ip ]]; then
+    exit 1;
+fi
+
+make package
+scp -p winterboard.deb root@"$ip":
+ssh root@"$ip" dpkg -i winterboard.deb
+
+if [[ -n $app ]]; then
+    ssh root@"$ip" killall "$app"
+fi