summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-20 13:25:05 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-20 13:25:05 +0100
commite113941490954ff935f24d2425d40769265b6a41 (patch)
tree9a369b30e86f0282a5132b1a60b53ab23e0cc2bf
parenta91c4eb8dd76e10a99124854ad5c2aa14917689b (diff)
downloadbuildscripts-e113941490954ff935f24d2425d40769265b6a41.tar.gz
buildscripts-e113941490954ff935f24d2425d40769265b6a41.tar.bz2
buildscripts-e113941490954ff935f24d2425d40769265b6a41.zip
add .dfsgX versioning support
-rwxr-xr-xbin/itzks-build-package2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/itzks-build-package b/bin/itzks-build-package
index 918f434..6f8cbee 100755
--- a/bin/itzks-build-package
+++ b/bin/itzks-build-package
@@ -124,7 +124,7 @@ prepare_workspace() {
cd $PROJECT_DIR
test -f debian/source/format && cat debian/source/format | egrep '^3.0.*\(quilt\)$' >/dev/null && {
- UPSTREAM_VERSION=`head -n1 debian/changelog | sed 's,.*(\(.*\)).*,\1,' | cut -d"-" -f1`
+ UPSTREAM_VERSION=`head -n1 debian/changelog | sed 's,.*(\(.*\)).*,\1,' | sed 's,\(\.dfsg.*\),,' | cut -d"-" -f1`
ORIG_TARBALL="${PROJECT}_${UPSTREAM_VERSION}.orig.tar.gz"
git checkout --force pristine-tar && pristine-tar checkout ../${ORIG_TARBALL}
}