[Glibc-bsd-commits] r4925 - trunk/freebsd-manpages/debian

Axel Beckert abe at alioth.debian.org
Sat Aug 31 00:03:14 UTC 2013


Author: abe
Date: 2013-08-31 00:03:14 +0000 (Sat, 31 Aug 2013)
New Revision: 4925

Modified:
   trunk/freebsd-manpages/debian/changelog
   trunk/freebsd-manpages/debian/control
   trunk/freebsd-manpages/debian/rules
Log:
Use prename instead of double for loop to add freebsd man page suffix

It's _way_ faster!

Add build-dependency on perl


Modified: trunk/freebsd-manpages/debian/changelog
===================================================================
--- trunk/freebsd-manpages/debian/changelog	2013-08-30 23:55:06 UTC (rev 4924)
+++ trunk/freebsd-manpages/debian/changelog	2013-08-31 00:03:14 UTC (rev 4925)
@@ -6,6 +6,8 @@
   * Rework get-orig-source target to support FreeBSD releases which don't
     offer manpages for download separately.
   * Use debian/install and dh_install instead of calling "cp" manually
+  * Use prename instead of double for loop to add freebsd man page suffix
+    + Add build-dependency on perl
 
  -- Axel Beckert <abe at debian.org>  Sat, 31 Aug 2013 00:47:15 +0200
 

Modified: trunk/freebsd-manpages/debian/control
===================================================================
--- trunk/freebsd-manpages/debian/control	2013-08-30 23:55:06 UTC (rev 4924)
+++ trunk/freebsd-manpages/debian/control	2013-08-31 00:03:14 UTC (rev 4925)
@@ -4,7 +4,8 @@
 Maintainer: GNU/kFreeBSD Maintainers <debian-bsd at lists.debian.org>
 Uploaders: Gürkan Sengün <gurkan at phys.ethz.ch>,
            Axel Beckert <abe at debian.org>
-Build-Depends: debhelper (>= 8)
+Build-Depends: debhelper (>= 8),
+               perl
 Standards-Version: 3.9.4
 Homepage: http://www.freebsd.org/docproj/
 Vcs-Svn: svn://anonscm.debian.org/glibc-bsd/trunk/freebsd-manpages

Modified: trunk/freebsd-manpages/debian/rules
===================================================================
--- trunk/freebsd-manpages/debian/rules	2013-08-30 23:55:06 UTC (rev 4924)
+++ trunk/freebsd-manpages/debian/rules	2013-08-31 00:03:14 UTC (rev 4925)
@@ -39,15 +39,7 @@
 	# Use i386 directory for architecture-dependent man pages
 	mv $(DESTDIR)/usr/share/man/man4/i386/* $(DESTDIR)/usr/share/man/man4/
 	rm -rf $(DESTDIR)/usr/share/man/man4/*/
-	for section in 2 3 4 9; do \
-	    for path in $(DESTDIR)/usr/share/man/man$${section}/*; do \
-	        file=`basename $${path}`; \
-	        base=`basename $${path} .gz`; \
-	        suffix=`echo $${file} | sed -e s/$${base}//`; \
-	        echo moving freebsd manpage to subsection freebsd man$${section}/$${base}freebsd$${suffix}; \
-	        mv $(DESTDIR)/usr/share/man/man$${section}/$${file} $(DESTDIR)/usr/share/man/man$${section}/$${base}freebsd$${suffix} || exit 1; \
-	    done \
-	done
+	prename -v 's/\.(\d)($|\.gz)/.$${1}freebsd$${2}/' $(DESTDIR)/usr/share/man/man*/*
 
 binary-arch: build install
 




More information about the Glibc-bsd-commits mailing list