aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-buildpackage.sh')
-rwxr-xr-xpbuilder-buildpackage.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/pbuilder-buildpackage.sh b/pbuilder-buildpackage.sh
index bd56ae2..7f0a5c0 100755
--- a/pbuilder-buildpackage.sh
+++ b/pbuilder-buildpackage.sh
@@ -5,12 +5,14 @@ export LC_ALL=C
function copydsc () {
local DSCFILE=$1
local TARGET=$2
- cp \
+ for FILE in
"$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
+ $(echo "$DSCFILE" | sed 's/\(.*\)-[^-.]*\.dsc$/\1/').orig.tar.gz ; do
+ cp $FILE $TARGET ;
+ done
+
}
function checkbuilddep () {