X-Git-Url: https://git.saurik.com/winterboard.git/blobdiff_plain/26c43b47c1020faa78c7ce6559c9d1f8319b7007..62ab6edbb3f23b74650ddb7e3ad054702f7eaa43:/Test.sh diff --git a/Test.sh b/Test.sh index 55409f8..df14755 100755 --- 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}' . -rsync --exclude .svn -SPaz 'saurik@carrier.saurik.com:menes/winterboard/Nature/' /Library/Themes/com.saurik.WinterBoard.Nature -#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