From ae250b9e9671e090dff4a791a9a07a2e0fab1d29 Mon Sep 17 00:00:00 2001 From: dancer Date: Mon, 27 Aug 2001 12:06:18 +0000 Subject: cleanbuildplace is split out and made some things surrounded by quotes --- pbuilder-updatebuildenv | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'pbuilder-updatebuildenv') diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv index f3e21ce..6da1a1b 100755 --- a/pbuilder-updatebuildenv +++ b/pbuilder-updatebuildenv @@ -7,14 +7,11 @@ CHROOTEXEC="chroot $BUILDPLACE " test -n "$DISTRIBUTION" && echo "Upgrading for distribution $DISTRIBUTION" -echo "cleaning the build env" -rm -rf $BUILDPLACE - +cleanbuildplace echo "building the build env" echo " -> extracting base.tgz" -mkdir -p $BUILDPLACE -cd $BUILDPLACE -tar xfzp $BASETGZ +mkdir -p "$BUILDPLACE" +(cd "$BUILDPLACE"; tar xfzp "$BASETGZ") mountproc mkdir -p $BUILDPLACE/tmp/buildd echo " -> copying local configuration" @@ -39,6 +36,5 @@ $CHROOTEXEC /usr/bin/apt-get -y install build-essential dpkg-dev apt $EXTRAPACKA $CHROOTEXEC /usr/bin/apt-get clean umountproc echo " -> creating base.tgz" -cd $BUILDPLACE -tar cfz $BASETGZ * - +(cd $BUILDPLACE; tar cfz $BASETGZ *) +cleanbuildplace -- cgit v1.2.3