summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-04-08 22:46:39 +0200
committerDaniel Baumann <daniel@debian.org>2012-04-08 22:50:32 +0200
commiteece680a032daa7048a54cfccb48c873258a7f73 (patch)
treeccfd2a1e46438df9286604e3d15c974209927b12
parent4e54d60d7f69ae3441e519e5611bd7ea48a8be19 (diff)
downloadlive-boot-eece680a032daa7048a54cfccb48c873258a7f73.tar.gz
live-boot-eece680a032daa7048a54cfccb48c873258a7f73.zip
Making extraction of the manpage section in manpages/Makefile work with multiple dots in the filename.
-rw-r--r--manpages/Makefile2
1 files changed, 1 insertions, 1 deletions
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