From 5932a90736b953baedae8adc77155f24dce01ee8 Mon Sep 17 00:00:00 2001 From: Julien "shaddai" Reveret Date: Fri, 17 Apr 2015 16:35:57 +0200 Subject: adding set_distribution target to build distribution specific package --- package/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'package') diff --git a/package/Makefile b/package/Makefile index db3eb40..74a305b 100644 --- a/package/Makefile +++ b/package/Makefile @@ -11,5 +11,8 @@ fetch: extract: fetch mv php-malware-finder ${BUILDDIR} -package: clean extract - debuild -b -us -uc --lintian-opts -X po-debconf \ No newline at end of file +set_distribution: + sed -e "s/##version/`cut -d'.' -f1 < /etc/debian_version`/" -i debian/control debian/changelog + +package: clean extract set_distribution + debuild -b -us -uc --lintian-opts -X po-debconf -- cgit v1.3