X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=debian%2Frules;h=985fbc5ff05946e320f36c6bc50b3d3c8b22f146;hb=6eec8d02e3d336e1f3a183a7875bfeaf1af1ae98;hp=a4b526c1a148b4c23c274d68f2fd0e47432e5241;hpb=7029c52ca7f0739d37f63f1659c6f60967d4fba3;p=notmuch diff --git a/debian/rules b/debian/rules index a4b526c1..985fbc5f 100755 --- a/debian/rules +++ b/debian/rules @@ -1,11 +1,18 @@ #!/usr/bin/make -f +VERSION=$(shell dpkg-parsechangelog | sed -n 's/^Version:\([^-]*\)/\1/p') + %: dh $@ override_dh_auto_configure: + cp version debian/version.pre-build + echo $(VERSION) > version dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch +override_dh_auto_clean: + -mv debian/version.pre-build version + dh_auto_clean override_dh_installdocs: dh_installdocs install -m644 vim/README debian/notmuch/usr/share/doc/notmuch/README.vim