From: Adam Dickmeiss Date: Tue, 16 Jun 2009 08:22:03 +0000 (+0200) Subject: Make pbuilder script upload if upload is supplied X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=59925f87890347b167be8b5c6bf8b29aa552b502;p=git-tools-moved-to-github.git Make pbuilder script upload if upload is supplied --- diff --git a/id-deb-build/id-pbuild-all.sh b/id-deb-build/id-pbuild-all.sh index 10fb5e7..ba5e210 100755 --- a/id-deb-build/id-pbuild-all.sh +++ b/id-deb-build/id-pbuild-all.sh @@ -13,6 +13,15 @@ PRODUCT=`echo *.dsc|sed 's/_.*//g'` DEBIAN_DIST="etch lenny" UBUNTU_DIST="jaunty intrepid hardy" +if test "$2" = "upload"; then + for dist in ${UBUNTU_DIST}; do + scp ${dist}-*/* ftp.indexdata.dk:/home/ftp/pub/${PRODUCT}/ubuntu/${dist} + done + for dist in ${DEBIAN_DIST}; do + scp ${dist}-*/* ftp.indexdata.dk:/home/ftp/pub/${PRODUCT}/debian/${dist} + done + exit 0 +fi for dist in ${UBUNTU_DIST} ${DEBIAN_DIST}; do for arch in i386 amd64; do if test ! -f /var/cache/pbuilder/${dist}-${arch}-base.tgz; then @@ -31,11 +40,3 @@ for dist in ${UBUNTU_DIST} ${DEBIAN_DIST}; do done done -if false; then -for dist in ${UBUNTU_DIST}; do - scp ${dist}-*/* ftp.indexdata.dk:/home/ftp/pub/${PRODUCT}/ubuntu/${dist} -done -for dist in ${DEBIAN_DIST}; do - scp ${dist}-*/* ftp.indexdata.dk:/home/ftp/pub/${PRODUCT}/debian/${dist} -done -fi