[SCM] Packaging of DBIx::DBStag in Debian branch, master, updated. debian/0.12-1-8-g66f6747

Olivier Sallou olivier.sallou at irisa.fr
Mon Oct 10 10:10:31 UTC 2011


The following commit has been merged in the master branch:
commit b5788594bd7e506b1acf071a680fb45556292d45
Author: Olivier Sallou <olivier.sallou at irisa.fr>
Date:   Mon Oct 10 11:28:24 2011 +0200

    Rename man pages in rules instead of patch

diff --git a/debian/rules b/debian/rules
index 61a0ae9..5d79d35 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,12 +6,8 @@
 override_dh_auto_test:
 	# Skip tests as they try to connect to database
 
-override_dh_clean:
-	dh_clean
-	rm -f t/db.config
-
-override_dh_install:
-	dh_install
+override_dh_auto_install:
+	dh_auto_install
 	rename 's/selectall/stag-selectall/' debian/libdbix-dbstag-perl/usr/bin/*
 	rename 's/selectall/stag-selectall/' debian/libdbix-dbstag-perl/usr/share/man/man1/*
 	rename 's/\.pl//' debian/libdbix-dbstag-perl/usr/share/man/man1/*.pl.1p
@@ -19,4 +15,12 @@ override_dh_install:
 	rename 's/\.pl//' debian/libdbix-dbstag-perl/usr/bin/*.pl
 	sed -i 's/ubiq\.cgi/stag-ubiq/g' debian/libdbix-dbstag-perl/usr/bin/stag-ubiq.cgi
 	rename 's/\.cgi//' debian/libdbix-dbstag-perl/usr/bin/*.cgi
+	# fix man pages, rename scripts without extensions
+	find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/selectall_html\.pl/stag-selectall_html/g'
+	find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/selectall_xml\.pl/stag-selectall_xml/g'
+	find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-autoddl\.pl/stag-autoddl/g'
+	find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-mogrify\.pl/stag-mogrify/g'
+	find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-autoddl\.pl/stag-autoddl/g'
+	find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-storenode\.pl/stag-storenode/g'
+	find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-autoschema\.pl/stag-autoschema/g'
 

-- 
Packaging of DBIx::DBStag in Debian



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