summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-20 13:11:05 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-20 13:11:05 +0100
commit8ce52aaa4b341522ed6248664f831fb9cdcc9e80 (patch)
tree6ec0dd16956b973d53a5021e7dac31cd1d0d9b2f /bin
parentfbcdf7b29c1b17adbc3339601c14ca1307b22bcf (diff)
downloadbuildscripts-8ce52aaa4b341522ed6248664f831fb9cdcc9e80.tar.gz
buildscripts-8ce52aaa4b341522ed6248664f831fb9cdcc9e80.tar.bz2
buildscripts-8ce52aaa4b341522ed6248664f831fb9cdcc9e80.zip
add support for source format 3.0 (quilt)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/itzks-build-package5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/itzks-build-package b/bin/itzks-build-package
index c961525..5f5955b 100755
--- a/bin/itzks-build-package
+++ b/bin/itzks-build-package
@@ -123,6 +123,11 @@ prepare_workspace() {
fi
cd $PROJECT_DIR
+ test -f debian/source/format && cat debian/source/format | egrep "^3.0.*\(quilt\)" && {
+ UPSTREAM_VERSION=`head -n1 debian/changelog | sed 's,.*(\(.*\)).*,\1,' | cut -d"-" -f1`
+ ORIG_TARBALL="${PROJECT}_${UPSTREAM_VERSION}.orig.tar.gz"
+ git checkout --force pristine-tar && pristine-tar checkout ../${ORIG_TARBALL}
+
# by default we build for all current debian versions
test -f BUILDS_FOR || cat > BUILDS_FOR <<EOF
debian: squeeze wheezy sid