From: Matthijs Kooijman Date: Thu, 9 Oct 2008 13:18:41 +0000 (+0200) Subject: apt-repository: Make rebuild script only build versions that are not available yet. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=6a85dfdab76f899eaaa36ecd7e8c4dad0ad045c3;p=apt-repository.git apt-repository: Make rebuild script only build versions that are not available yet. --- diff --git a/rebuild b/rebuild index 5e2528f..326175a 100755 --- a/rebuild +++ b/rebuild @@ -7,7 +7,15 @@ mkdir -p $PACKAGES cd $PACKAGES for i in ../../$SOURCES/*; do - equivs-build $i + VERSION=`cat $i | grep "^Version:" | sed "s/^Version: //"` + PACKAGE=`cat $i | grep "^Package:" | sed "s/^Package: //"` + + if [ ! -f "${PACKAGE}_${VERSION}_all.deb" ]; then + echo "Building version $VERSION of $PACKAGE" + equivs-build $i + else + echo "Skipping $PACKAGE, version $VERSION already built" + fi done cd ../..