[libschedule-cron-events-perl] 03/03: install script as example

gregor herrmann gregoa at debian.org
Fri Oct 30 15:32:54 UTC 2015


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

gregoa pushed a commit to branch master
in repository libschedule-cron-events-perl.

commit 243380a7f0a1212e19ea773b84f48bce569e306b
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Oct 30 16:30:35 2015 +0100

    install script as example
    
    and rm empty dirs. and fix hashbang.
    
    Gbp-Dch: Ignore
---
 debian/libschedule-cron-events-perl.examples |  1 +
 debian/rules                                 | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/debian/libschedule-cron-events-perl.examples b/debian/libschedule-cron-events-perl.examples
new file mode 100644
index 0000000..b15cd28
--- /dev/null
+++ b/debian/libschedule-cron-events-perl.examples
@@ -0,0 +1 @@
+cron_event_predict.plx
diff --git a/debian/rules b/debian/rules
index 2d33f6a..e1f994d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,21 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
 %:
 	dh $@
+
+override_dh_auto_install:
+	dh_auto_install
+	# installed as example
+	$(RM) -v \
+		$(TMP)/usr/bin/cron_event_predict.plx \
+		$(TMP)/usr/share/man/man1/cron_event_predict.plx.1p
+	rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/bin \
+		$(TMP)/usr/share/man/man1
+
+override_dh_installexamples:
+	dh_installexamples
+	sed -i '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libschedule-cron-events-perl.git



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