[SCM] live-config branch, debian, updated. debian/3.0_a37-1

Daniel Baumann daniel at debian.org
Mon Apr 9 17:07:00 UTC 2012


The following commit has been merged in the debian branch:
commit a6910eb7d169a28cb712c11600b39e9d1f99b21f
Author: Daniel Baumann <daniel at debian.org>
Date:   Sun Apr 8 22:52:23 2012 +0200

    Making extraction of the manpage section in manpages/Makefile work with multiple dots in the filename.

diff --git a/manpages/Makefile b/manpages/Makefile
index 2a5c1fb..178ce12 100644
--- a/manpages/Makefile
+++ b/manpages/Makefile
@@ -20,7 +20,7 @@ po4a.cfg:
 
 	for MANPAGE in en/*; \
 	do \
-		SECTION="$$(basename $${MANPAGE} | awk -F. '{ print $$2 }')"; \
+		SECTION="$$(basename $${MANPAGE} | sed -e 's|\.|\n|g' | tail -n1)"; \
 		echo "[type: man] $${MANPAGE} \$$lang:\$$lang/$$(basename $${MANPAGE} .$${SECTION}).\$$lang.$${SECTION}" >> po4a.cfg; \
 	done
 

-- 
live-config



More information about the debian-live-changes mailing list