aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2017-08-23 21:30:57 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2017-08-23 21:30:57 +0200
commitc3a17500ac8705848d4b7e480eacb10d562d7b1a (patch)
tree8b56a20127bb7b713576fb517e10a1113d627de7
parenta6268a5bc188ebe5eefed356d76b299a5c56756b (diff)
parent8a344cd635aa37772be507eae3e6111d71ee2672 (diff)
Merge branch 'petterreinholdtsen-debverbuild' into packaging_piotr
-rwxr-xr-xdebian/build-package14
1 files changed, 9 insertions, 5 deletions
diff --git a/debian/build-package b/debian/build-package
index 269590b..2d928de 100755
--- a/debian/build-package
+++ b/debian/build-package
@@ -1,11 +1,15 @@
#!/bin/bash
-VERSION=0.40
+BASEVERSION=$(dpkg-parsechangelog --show-field Version | cut -d- -f1)
+DEBVERSION=$(dpkg-parsechangelog --show-field Version)
-cd ../..
+debdir=$(cd $(dirname $0); pwd)
+pkgdir=$(cd $debdir/..; pwd)
+pkgbasedir=$(cd $debdir/..; basename $(pwd))
+cd $pkgdir/..
-tar -acf gr-gsm_${VERSION}.orig.tar.gz gr-gsm
-cd gr-gsm
+tar -acf gr-gsm_${BASEVERSION}.orig.tar.gz $pkgbasedir
+cd $pkgdir
debuild -S -sa
#pdebuild
cd ..
-dput ppa:ptrkrysik/gr-gsm gr-gsm_${VERSION}-0ppa0_source.changes
+dput ppa:ptrkrysik/gr-gsm gr-gsm_${DEBVERSION}_source.changes