summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/updateipks31
1 files changed, 28 insertions, 3 deletions
diff --git a/scripts/updateipks b/scripts/updateipks
index 3195f26..83d945b 100755
--- a/scripts/updateipks
+++ b/scripts/updateipks
@@ -1,6 +1,31 @@
1#!/bin/sh 1#!/bin/sh
2 2
3RHOST=qpe.sf.net 3case "$1" in
4RDIR=/home/groups/q/qp/qpe/htdocs/packages/ipaq/unstable/ 4-oz)
5 RHOST=openzaurus.sf.net
6 RDIR=/home/groups/o/op/openzaurus/htdocs/feeds/3.0
7 INDEXER="~/ipkg-make-index ."
8 shift
9 ;;
10-hh.org)
11 RHOST=opie.handhelds.org
12 RDIR=/home/opie/website/html/feed/ipaq
13 INDEXER="/home/opie/ipkg-make-index ."
14 shift
15 ;;
16-qpe)
17 RHOST=qpe.sf.net
18 RDIR=/home/groups/q/qp/qpe/htdocs/packages/ipaq/unstable
19 shift
20 ;;
21esac
22
23if [ -z "$RHOST" -o -z "$RDIR" ]
24then
25 echo Error: RHOST and RDIR not set! Aborting.
26 exit
27fi
28
29[ -z "$INDEXER" ] && INDEXER="./mkPackages"
5 30
6NEW="" 31NEW=""
@@ -24,5 +49,5 @@ then
24 scp $NEW $RHOST:$RDIR 49 scp $NEW $RHOST:$RDIR
25 rm $NEW 50 rm $NEW
26 ssh $RHOST -C "cd $RDIR; chmod g+w *.ipk; ./mkPackages" 51 ssh $RHOST -C "cd $RDIR; chmod g+w *.ipk; $INDEXER"
27fi 52fi
28 53