From: Enlightenment S. <no-...@en...> - 2009-05-10 12:21:28
|
Log: Now downloads only things in compile_list, and also fixed creation of chroot with another pbuilderplace. Author: quaker Date: 2009-05-10 05:21:00 -0700 (Sun, 10 May 2009) New Revision: 40582 Modified: trunk/packaging/debian/e17builder.sh Modified: trunk/packaging/debian/e17builder.sh =================================================================== --- trunk/packaging/debian/e17builder.sh 2009-05-10 11:14:07 UTC (rev 40581) +++ trunk/packaging/debian/e17builder.sh 2009-05-10 12:21:00 UTC (rev 40582) @@ -140,6 +140,15 @@ # functions download() { +echo "DOWNLOADING PACKAGES WITH SCP..." +for down in ${compile_list[@]}; do + case $down in + eina|eet|evas|ecore|embryo|edje|edbus|efreet|e17) scp -r $username@$eserver:$path/main/$down ./ + ;; + *) scp -r $username@$eserver:$path/extras/$down ./ + ;; + esac +done echo "DOWNLOADING MD5SUMS..." wget $md5path echo "CHECKING MD5SUMS..." @@ -176,7 +185,7 @@ echo "CREATING CHROOTS..." for chroots in ${distros[@]}; do echo "Creating chroot: $(echo $chroots | sed 's/#.*//'):$(echo $chroots | sed 's/.*#//')" - sudo DIST=$(echo $chroots | sed 's/#.*//') ARCH=$(echo $chroots | sed 's/.*#//') pbuilder create --basetgz $pbuilderplace/$(echo $chroots | sed 's/#.*//')-$(echo $chroots | sed 's/.*#//')-base.tgz + sudo DIST=$(echo $chroots | sed 's/#.*//') ARCH=$(echo $chroots | sed 's/.*#//') pbuilder create --basetgz $pbuilderplace/$(echo $chroots | sed 's/#.*//')-$(echo $chroots | sed 's/.*#//')-base.tgz --buildplace $pbuilderplace/build/$(echo $chroots | sed 's/#.*//')-$(echo $chroots | sed 's/.*#//') if [ "$?" -ge "1" ]; then echo "ERROR, exitting." exit 1 @@ -209,6 +218,10 @@ else mkdir -p $localpath fi +echo "CREATING $pbuilderplace IF NOT EXISTS..." +if [ ! -d "$pbuilderplace" ]; then + sudo mkdir $pbuilderplace +fi } compile() { |