From: Dennis Schafroth Date: Wed, 30 Jan 2013 15:53:39 +0000 (+0000) Subject: Enable selective update. First parameter is list of distributions. If empty, all X-Git-Url: http://git.indexdata.com/?p=git-tools-moved-to-github.git;a=commitdiff_plain;h=43069aae44d202e464f7a10a87b8caa4aa613582 Enable selective update. First parameter is list of distributions. If empty, all --- diff --git a/update-archive/update-archive.sh b/update-archive/update-archive.sh index e982046..b642138 100755 --- a/update-archive/update-archive.sh +++ b/update-archive/update-archive.sh @@ -15,9 +15,14 @@ confdir=`pwd` architectures="i386 amd64" -for vdist in ubuntu/lucid \ - ubuntu/natty ubuntu/oneiric ubuntu/precise ubuntu/quantal \ - debian/wheezy debian/squeeze; do +architectures="i386 amd64" +if [ "$1" == "" ]; then + DISTRIBUTIONS="ubuntu/lucid ubuntu/natty ubuntu/oneiric ubuntu/precise ubuntu/quantal debian/wheezy debian/squeeze debian/lenny" +else + DISTRIBUTIONS=$1 +fi + +for vdist in $DISTRIBUTIONS ; do dist=`basename $vdist` vendor=`dirname $vdist` ftpdir=/home/ftp/pub/$vendor