Enable selective update. First parameter is list of distributions. If empty, all
authorDennis Schafroth <dennis@indexdata.com>
Wed, 30 Jan 2013 15:53:39 +0000 (15:53 +0000)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 30 Jan 2013 15:53:39 +0000 (15:53 +0000)
update-archive/update-archive.sh

index e982046..b642138 100755 (executable)
@@ -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