diff options
author | dancer <dancer> | 2001-08-27 12:06:18 +0000 |
---|---|---|
committer | dancer <dancer> | 2001-08-27 12:06:18 +0000 |
commit | ae250b9e9671e090dff4a791a9a07a2e0fab1d29 (patch) | |
tree | 9202c9d9f24a634813d1b9e16b9f934cf678b92a /pbuilder-updatebuildenv | |
parent | 3406794c7f2750b5233c3f249dac7aad05a01ffd (diff) | |
download | pbuilder-ae250b9e9671e090dff4a791a9a07a2e0fab1d29.tar pbuilder-ae250b9e9671e090dff4a791a9a07a2e0fab1d29.tar.gz |
cleanbuildplace is split out and made some things surrounded by quotes
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-x | pbuilder-updatebuildenv | 14 |
1 files changed, 5 insertions, 9 deletions
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 |