summaryrefslogtreecommitdiff
path: root/scripts/updateipks
authorkergoth <kergoth>2002-01-25 22:14:26 (UTC)
committer kergoth <kergoth>2002-01-25 22:14:26 (UTC)
commit15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff)
treec2fa0399a2c47fda8e2cd0092c73a809d17f68eb /scripts/updateipks
downloadopie-15318cad33835e4e2dc620d033e43cd930676cdd.zip
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2
Initial revision
Diffstat (limited to 'scripts/updateipks') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/updateipks29
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 @@
1#!/bin/sh
2
3RHOST=qpe.sf.net
4RDIR=/home/groups/q/qp/qpe/htdocs/packages/ipaq/unstable/
5
6NEW=""
7rm -f *.ipk
8ssh $RHOST -C "cd $RDIR; ls *.ipk" >currentipks &
9./mkipks "$@"
10wait # for ssh
11
12for i in *.ipk
13do
14 if grep -q $i currentipks
15 then
16 rm $i
17 else
18 NEW="$NEW $i";
19 fi
20done
21
22if [ -n "$NEW" ]
23then
24 scp $NEW $RHOST:$RDIR
25 rm $NEW
26 ssh $RHOST -C "cd $RDIR; chmod g+w *.ipk; ./mkPackages"
27fi
28
29rm currentipks