From: Daniel Baumann Date: Sun, 8 Apr 2012 20:46:39 +0000 (+0200) Subject: Making extraction of the manpage section in manpages/Makefile work with multiple... X-Git-Tag: debian/3.0_a27-1~16 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=eece680a032daa7048a54cfccb48c873258a7f73 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 00370bc..fd6298f 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