[SCM] live-build branch, debian, updated. debian/3.0_a46-1-21-g4b333fb

Daniel Baumann daniel at debian.org
Fri Apr 27 10:05:53 UTC 2012


The following commit has been merged in the debian branch:
commit 788e5d6dacae947ffb1aba68cfa6299f77f6b92b
Author: Daniel Baumann <daniel at debian.org>
Date:   Sun Apr 8 22:53:18 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 2d07fe9..35128f1 100644
--- a/manpages/Makefile
+++ b/manpages/Makefile
@@ -12,7 +12,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-build



More information about the debian-live-changes mailing list