[libpdf-fdf-simple-perl] 10/13: Recreate grammar during package build.

gregor herrmann gregoa at debian.org
Sun Dec 22 20:40:37 UTC 2013


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libpdf-fdf-simple-perl.

commit 295b856a8fd347cad56bb751622bcb4fe92c7a75
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Dec 22 21:36:37 2013 +0100

    Recreate grammar during package build.
---
 debian/rules | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2d33f6a..a27d66e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,16 @@
 
 %:
 	dh $@
+
+override_dh_auto_build:
+	# backup
+	cp -v $(CURDIR)/lib/PDF/FDF/Simple/Grammar.pm $(CURDIR)/lib/PDF/FDF/Simple/Grammar.pm.save
+
+	# recreate
+	perl ./Build grammar
+
+	# build
+	dh_auto_build -- --verbose 1
+
+	# restore
+	mv -v $(CURDIR)/lib/PDF/FDF/Simple/Grammar.pm.save $(CURDIR)/lib/PDF/FDF/Simple/Grammar.pm

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libpdf-fdf-simple-perl.git



More information about the Pkg-perl-cvs-commits mailing list