diff options
author | Daniel Baumann <daniel@debian.org> | 2012-04-08 22:53:18 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-04-08 22:53:18 +0200 |
commit | 788e5d6dacae947ffb1aba68cfa6299f77f6b92b (patch) | |
tree | 7e9dc73e8ab7e9990fead478833eddc73e83e009 | |
parent | f3f9ad8bdec8df12bf20ae542c92ebfe75b1a86e (diff) | |
download | vyos-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.
-rw-r--r-- | manpages/Makefile | 2 |
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 |