From 7a241364625f0c312db18c0cd8d71daca62683b9 Mon Sep 17 00:00:00 2001 From: dancer Date: Thu, 23 Aug 2001 15:49:44 +0000 Subject: further fixing. --- pbuilder-buildpackage.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pbuilder-buildpackage.sh b/pbuilder-buildpackage.sh index 23aae80..bd56ae2 100755 --- a/pbuilder-buildpackage.sh +++ b/pbuilder-buildpackage.sh @@ -5,10 +5,12 @@ export LC_ALL=C function copydsc () { local DSCFILE=$1 local TARGET=$2 - cp $(echo $DSCFILE | sed 's/^\(.*\)\.dsc$/\1/' ).diff.gz \ - $(echo $DSCFILE | sed 's/^\(.*\)\.dsc$/\1/').tar.gz \ - $(echo $DSCFILE | sed 's/\(.*\)-[^-.]*\.dsc$/\1/').orig.tar.gz \ - $TARGET + cp \ + "$DSCFILE" \ + $(echo "$DSCFILE" | sed 's/^\(.*\)\.dsc$/\1/' ).diff.gz \ + $(echo "$DSCFILE" | sed 's/^\(.*\)\.dsc$/\1/').tar.gz \ + $(echo "$DSCFILE" | sed 's/\(.*\)-[^-.]*\.dsc$/\1/').orig.tar.gz \ + $TARGET } function checkbuilddep () { @@ -33,7 +35,7 @@ mkdir -p $BUILDPLACE mkdir -p $BUILDPLACE/tmp/buildd ) echo Copying source file -copydsc $PACKAGENAME $BUILDPLACE/tmp/buildd +copydsc "$PACKAGENAME" "$BUILDPLACE/tmp/buildd" echo Extracting source $CHROOTEXEC /usr/bin/dpkg-source -x $(basename $PACKAGENAME) echo Installing the build-deps -- cgit v1.2.3