[SCM] live-config branch, debian-next, updated. debian/3.0_a36-1-10-g05a23e4

Daniel Baumann daniel at debian.org
Sun Apr 8 20:53:04 UTC 2012


The following commit has been merged in the debian-next branch:
commit 05a23e401a883185275dcf6a1b161530c5b54c15
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