aboutsummaryrefslogtreecommitdiffstats
path: root/dists/debian/build-package
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2017-08-29 09:23:20 +0200
committerPetter Reinholdtsen <pere@hungry.com>2017-08-29 09:23:20 +0200
commit5887f76c524ad4878e12b52b7e09d58c503cea50 (patch)
tree95c13de2d17bc7133008c163e5b4e4c2a4264598 /dists/debian/build-package
parentd65671eacb3cf6f62196ab0e7a3751e783e5c644 (diff)
Move debian/ directory to dists/ to avoid conflict with official Debian packaging.
Diffstat (limited to 'dists/debian/build-package')
-rwxr-xr-xdists/debian/build-package15
1 files changed, 15 insertions, 0 deletions
diff --git a/dists/debian/build-package b/dists/debian/build-package
new file mode 100755
index 0000000..2d928de
--- /dev/null
+++ b/dists/debian/build-package
@@ -0,0 +1,15 @@
+#!/bin/bash
+BASEVERSION=$(dpkg-parsechangelog --show-field Version | cut -d- -f1)
+DEBVERSION=$(dpkg-parsechangelog --show-field Version)
+
+debdir=$(cd $(dirname $0); pwd)
+pkgdir=$(cd $debdir/..; pwd)
+pkgbasedir=$(cd $debdir/..; basename $(pwd))
+cd $pkgdir/..
+
+tar -acf gr-gsm_${BASEVERSION}.orig.tar.gz $pkgbasedir
+cd $pkgdir
+debuild -S -sa
+#pdebuild
+cd ..
+dput ppa:ptrkrysik/gr-gsm gr-gsm_${DEBVERSION}_source.changes