Eric Butler | 91ffa2b | 2012-08-14 18:07:48 -0700 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | |
Eric Butler | d11a5c1 | 2012-08-14 20:56:26 -0700 | [diff] [blame] | 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 | |
Eric Butler | 91ffa2b | 2012-08-14 18:07:48 -0700 | [diff] [blame] | 7 | export DH_VERBOSE=1 |
| 8 | |
| 9 | %: |
| 10 | dh --with autoreconf $@ --fail-missing |
Eric Butler | d11a5c1 | 2012-08-14 20:56:26 -0700 | [diff] [blame] | 11 | |
| 12 | override_dh_autoreconf: |
| 13 | echo $(VERSION) > .tarball-version |
| 14 | dh_autoreconf |