summaryrefslogtreecommitdiff
path: root/scripts/updateipks
Unidiff
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