summaryrefslogtreecommitdiff
path: root/scripts/updateipks
authorkergoth <kergoth>2002-09-05 15:54:05 (UTC)
committer kergoth <kergoth>2002-09-05 15:54:05 (UTC)
commit99c55436fe50011842714eb08cc286f00f39d591 (patch) (side-by-side diff)
tree44519426c36da516cc111ccec124c81b0e901f3c /scripts/updateipks
parent45f8f55b7ffde37733a2afd65da9e554a4970c87 (diff)
downloadopie-99c55436fe50011842714eb08cc286f00f39d591.zip
opie-99c55436fe50011842714eb08cc286f00f39d591.tar.gz
opie-99c55436fe50011842714eb08cc286f00f39d591.tar.bz2
Making this somewhat useful.
Diffstat (limited to 'scripts/updateipks') (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,8 +1,33 @@
#!/bin/sh
-RHOST=qpe.sf.net
-RDIR=/home/groups/q/qp/qpe/htdocs/packages/ipaq/unstable/
+case "$1" in
+-oz)
+ RHOST=openzaurus.sf.net
+ RDIR=/home/groups/o/op/openzaurus/htdocs/feeds/3.0
+ INDEXER="~/ipkg-make-index ."
+ shift
+ ;;
+-hh.org)
+ RHOST=opie.handhelds.org
+ RDIR=/home/opie/website/html/feed/ipaq
+ INDEXER="/home/opie/ipkg-make-index ."
+ shift
+ ;;
+-qpe)
+ RHOST=qpe.sf.net
+ RDIR=/home/groups/q/qp/qpe/htdocs/packages/ipaq/unstable
+ shift
+ ;;
+esac
+
+if [ -z "$RHOST" -o -z "$RDIR" ]
+then
+ echo Error: RHOST and RDIR not set! Aborting.
+ exit
+fi
+
+[ -z "$INDEXER" ] && INDEXER="./mkPackages"
NEW=""
rm -f *.ipk
ssh $RHOST -C "cd $RDIR; ls *.ipk" >currentipks &
@@ -22,8 +47,8 @@ done
if [ -n "$NEW" ]
then
scp $NEW $RHOST:$RDIR
rm $NEW
- ssh $RHOST -C "cd $RDIR; chmod g+w *.ipk; ./mkPackages"
+ ssh $RHOST -C "cd $RDIR; chmod g+w *.ipk; $INDEXER"
fi
rm currentipks