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

This commit is contained in:
Daniel Baumann 2012-04-08 22:53:18 +02:00
parent f3f9ad8bde
commit 788e5d6dac
1 changed files with 1 additions and 1 deletions

View File

@ -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