summaryrefslogtreecommitdiff
path: root/scripts/updateipks
Side-by-side diff
Diffstat (limited to 'scripts/updateipks') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/updateipks32
1 files changed, 25 insertions, 7 deletions
diff --git a/scripts/updateipks b/scripts/updateipks
index 83d945b..1c9c9b8 100755
--- a/scripts/updateipks
+++ b/scripts/updateipks
@@ -2,2 +2,4 @@
+while [ $# -ne 0 ]
+do
case "$1" in
@@ -7,3 +9,7 @@ case "$1" in
INDEXER="~/ipkg-make-index ."
- shift
+ ;;
+-oz-test)
+ RHOST=openzaurus.sf.net
+ RDIR=/home/groups/o/op/openzaurus/htdocs/feeds/3.0/test
+ INDEXER="~/ipkg-make-index ."
;;
@@ -13,3 +19,2 @@ case "$1" in
INDEXER="/home/opie/ipkg-make-index ."
- shift
;;
@@ -18,5 +23,12 @@ case "$1" in
RDIR=/home/groups/q/qp/qpe/htdocs/packages/ipaq/unstable
- shift
+ ;;
+-force)
+ FORCE=1
+ ;;
+*)
+ MKIPKSOPTS="$MKIPKSOPTS $1"
;;
esac
+shift
+done
@@ -32,5 +44,6 @@ NEW=""
rm -f *.ipk
+
ssh $RHOST -C "cd $RDIR; ls *.ipk" >currentipks &
-./mkipks "$@"
wait # for ssh
+./mkipks $MKIPKSOPTS
@@ -38,7 +51,12 @@ for i in *.ipk
do
- if grep -q $i currentipks
+ if [ -z "$FORCE" ]
then
- rm $i
+ if grep -q $i currentipks
+ then
+ rm $i
+ else
+ NEW="$NEW $i";
+ fi
else
- NEW="$NEW $i";
+ NEW="$NEW $i";
fi