Alexander Couzens | e485cdd | 2017-08-06 21:52:02 +0000 | [diff] [blame^] | 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2) |
| 4 | DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1) |
| 5 | VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') |
| 6 | |
| 7 | # main packaging script based on dh7 syntax |
| 8 | %: |
| 9 | dh $@ --with autoreconf |
| 10 | |
| 11 | override_dh_autoreconf: |
| 12 | echo $(VERSION) > .tarball-version |
| 13 | dh_autoreconf |
| 14 | |
| 15 | # See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg |
| 16 | override_dh_strip: |
| 17 | dh_strip --dbg-package=libosmo-ranap-dbg |
| 18 | dh_strip --dbg-package=osmo-hnbgw |