From e6e6baf406e705c81f806b86e1352bf070cce6ad Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 20 Dec 2011 16:56:30 +0100 Subject: more fixes --- bin/nwt-build-package | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/nwt-build-package b/bin/nwt-build-package index 338a0b2..ccd6dbd 100755 --- a/bin/nwt-build-package +++ b/bin/nwt-build-package @@ -30,7 +30,7 @@ set_vars() { USE_SUDO="yes" PDEBUILD="pdebuild --pbuilder qemubuilder" TEMP_BASE="$HOME/tmp/" - mkdir "$TEMP_BASE" + mkdir -p "$TEMP_BASE" chmod 2770 "$TEMP_BASE" # first argv is the name of the Git project @@ -75,7 +75,7 @@ set_vars() { clear_pkgdist() { # pkgdist directory cleanup - cat BUILDS_FOR | egrep -v '(^$|^#.*$)' | while read line; do + cat $PROJECT_DIR/BUILDS_FOR | egrep -v '(^$|^#.*$)' | while read line; do l_DIST=$(echo $line | cut -d":" -f1 | tr [A-Z] [a-z]) CODENAMES=${CODENAMES:-$(echo $line | cut -d":" -f2- | tr [A-Z] [a#-z])} echo "$DIST_SUPPORTED" | grep $l_DIST >/dev/null && { -- cgit v1.2.3