-rwxr-xr-x | scripts/updateipks | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/scripts/updateipks b/scripts/updateipks index 83d945b..1c9c9b8 100755 --- a/scripts/updateipks +++ b/scripts/updateipks @@ -1,4 +1,6 @@ #!/bin/sh +while [ $# -ne 0 ] +do case "$1" in -oz) @@ -6,5 +8,9 @@ case "$1" in RDIR=/home/groups/o/op/openzaurus/htdocs/feeds/3.0 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 ." ;; -hh.org) @@ -12,12 +18,18 @@ case "$1" in 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 + ;; +-force) + FORCE=1 + ;; +*) + MKIPKSOPTS="$MKIPKSOPTS $1" ;; esac +shift +done if [ -z "$RHOST" -o -z "$RDIR" ] @@ -31,10 +43,13 @@ fi NEW="" rm -f *.ipk + ssh $RHOST -C "cd $RDIR; ls *.ipk" >currentipks & -./mkipks "$@" wait # for ssh +./mkipks $MKIPKSOPTS for i in *.ipk do + if [ -z "$FORCE" ] + then if grep -q $i currentipks then @@ -43,4 +58,7 @@ do NEW="$NEW $i"; fi + else + NEW="$NEW $i"; + fi done |