summaryrefslogtreecommitdiff
path: root/manpages/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'manpages/Makefile')
-rw-r--r--manpages/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/manpages/Makefile b/manpages/Makefile
index 2d07fe92e..35128f166 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