diff options
author | Daniel Baumann <daniel@debian.org> | 2012-04-08 22:46:39 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-04-08 22:50:32 +0200 |
commit | eece680a032daa7048a54cfccb48c873258a7f73 (patch) | |
tree | ccfd2a1e46438df9286604e3d15c974209927b12 | |
parent | 4e54d60d7f69ae3441e519e5611bd7ea48a8be19 (diff) | |
download | live-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/Makefile | 2 |
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 |