summaryrefslogtreecommitdiff
path: root/manpages/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-04-08 22:53:18 +0200
committerDaniel Baumann <daniel@debian.org>2012-04-08 22:53:18 +0200
commit788e5d6dacae947ffb1aba68cfa6299f77f6b92b (patch)
tree7e9dc73e8ab7e9990fead478833eddc73e83e009 /manpages/Makefile
parentf3f9ad8bdec8df12bf20ae542c92ebfe75b1a86e (diff)
downloadvyos-live-build-788e5d6dacae947ffb1aba68cfa6299f77f6b92b.tar.gz
vyos-live-build-788e5d6dacae947ffb1aba68cfa6299f77f6b92b.zip
Making extraction of the manpage section in manpages/Makefile work with multiple dots in the filename.
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