author | kergoth <kergoth> | 2002-09-08 19:06:25 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-09-08 19:06:25 (UTC) |
commit | cbc8b23c13fab644fd5477a18691222c752ea40f (patch) (side-by-side diff) | |
tree | b239a68cfeb7dc51087938b172c29c03353dd878 /scripts | |
parent | b7810f11be4f38de91d51f62c11ae1ae9db3754b (diff) | |
download | opie-cbc8b23c13fab644fd5477a18691222c752ea40f.zip opie-cbc8b23c13fab644fd5477a18691222c752ea40f.tar.gz opie-cbc8b23c13fab644fd5477a18691222c752ea40f.tar.bz2 |
Added -force option to force a update of packages.
-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,24 +1,36 @@ #!/bin/sh +while [ $# -ne 0 ] +do case "$1" in -oz) RHOST=openzaurus.sf.net 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) 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 + ;; +-force) + FORCE=1 + ;; +*) + MKIPKSOPTS="$MKIPKSOPTS $1" ;; esac +shift +done if [ -z "$RHOST" -o -z "$RDIR" ] then @@ -30,18 +42,24 @@ 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 rm $i else NEW="$NEW $i"; fi + else + NEW="$NEW $i"; + fi done if [ -n "$NEW" ] |