author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (side-by-side diff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /scripts/updateipks | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
-rwxr-xr-x | scripts/updateipks | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/updateipks b/scripts/updateipks new file mode 100755 index 0000000..3195f26 --- a/dev/null +++ b/scripts/updateipks @@ -0,0 +1,29 @@ +#!/bin/sh + +RHOST=qpe.sf.net +RDIR=/home/groups/q/qp/qpe/htdocs/packages/ipaq/unstable/ + +NEW="" +rm -f *.ipk +ssh $RHOST -C "cd $RDIR; ls *.ipk" >currentipks & +./mkipks "$@" +wait # for ssh + +for i in *.ipk +do + if grep -q $i currentipks + then + rm $i + else + NEW="$NEW $i"; + fi +done + +if [ -n "$NEW" ] +then + scp $NEW $RHOST:$RDIR + rm $NEW + ssh $RHOST -C "cd $RDIR; chmod g+w *.ipk; ./mkPackages" +fi + +rm currentipks |