diff options
author | dancer <dancer> | 2001-08-23 15:59:14 +0000 |
---|---|---|
committer | dancer <dancer> | 2001-08-23 15:59:14 +0000 |
commit | 658b1f7bc4e72e1008ce849c2d0b20820bdf8689 (patch) | |
tree | 2da6a365ea349e45bdce68d4af1c0c444fcdedef | |
parent | 7a241364625f0c312db18c0cd8d71daca62683b9 (diff) | |
download | pbuilder-658b1f7bc4e72e1008ce849c2d0b20820bdf8689.tar pbuilder-658b1f7bc4e72e1008ce849c2d0b20820bdf8689.tar.gz |
updated
-rwxr-xr-x | pbuilder-buildpackage.sh | 8 | ||||
-rwxr-xr-x | pbuilder-updatebuildenv | 11 |
2 files changed, 11 insertions, 8 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 () { diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv index 6b347de..a5f8d07 100755 --- a/pbuilder-updatebuildenv +++ b/pbuilder-updatebuildenv @@ -2,12 +2,13 @@ export LANG=C export LC_ALL=C -PACKAGENAME=$1 - +DISTRIBUTION=$1 +test -z "$DISTRIBUTION" && DISTRIBUTION=woody . /etc/pbuilderrc - CHROOTEXEC="chroot $BUILDPLACE " +echo "Upgrading for distribution $DISTRIBUTION" + cd $MYREPOSITORY echo Initializing repository dpkg-scanpackages . . | gzip > Packages.gz @@ -29,8 +30,8 @@ echo Installing apt-lines cat > $BUILDPLACE/etc/apt/sources.list << EOF deb $MYREPOSITORYHTTP ./ deb-src $MYREPOSITORYHTTP ./ -deb http://www.jp.debian.org/debian unstable main contrib non-free -deb-src http://www.jp.debian.org/debian unstable main contrib non-free +deb http://www.jp.debian.org/debian $DISTRIBUTION main contrib non-free +deb-src http://www.jp.debian.org/debian $DISTRIBUTION main contrib non-free EOF echo Refreshing the base.tgz |