From 43069aae44d202e464f7a10a87b8caa4aa613582 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 30 Jan 2013 15:53:39 +0000 Subject: [PATCH] Enable selective update. First parameter is list of distributions. If empty, all --- update-archive/update-archive.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 -- 1.7.10.4