diff options
author | Alexander Richter <67486332+Procyhon@users.noreply.github.com> | 2021-06-01 22:56:27 +0200 |
---|---|---|
committer | Alexander Richter <67486332+Procyhon@users.noreply.github.com> | 2021-06-06 12:32:05 +0200 |
commit | ab7e7f651e71556d879421cb3680f9762b0a77d2 (patch) | |
tree | e444ea198b8bccffe732fe04e2e1e85ca53e6f9e /Makefile | |
parent | 24b364a230102acb8abdf5724c63153d50f03a6c (diff) | |
download | podman-ab7e7f651e71556d879421cb3680f9762b0a77d2.tar.gz podman-ab7e7f651e71556d879421cb3680f9762b0a77d2.tar.bz2 podman-ab7e7f651e71556d879421cb3680f9762b0a77d2.zip |
UPDATE MANPAGE_SYNTAX (commit,attach,auto-update)
Updated version for the MANPAGE_SYNTAX and adaption of the syntax for
the manpages of podman-commit, podman-attach, and podman-auto-update.
Signed-off-by: Alexander Richter <67486332+Procyhon@users.noreply.github.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -428,8 +428,16 @@ pkg/api/swagger.yaml: .gopathok make -C pkg/api $(MANPAGES): %: %.md .install.md2man docdir - @sed -e 's/\((podman[^)]*\.md)\)//g' -e 's/\[\(podman[^]]*\)\]/\1/g' \ - -e 's;<\(/\)\?\(a\|a\s\+[^>]*\|sup\)>;;g' $< | \ + +### sed is used to filter http/s links as well as relative links +### replaces "\" at the end of a line with two spaces +### this ensures that manpages are renderd correctly + + @sed -e 's/\((podman[^)]*\.md\(#.*\)\?)\)//g' \ + -e 's/\[\(podman[^]]*\)\]/\1/g' \ + -e 's/\[\([^]]*\)](http[^)]\+)/\1/g' \ + -e 's;<\(/\)\?\(a\|a\s\+[^>]*\|sup\)>;;g' \ + -e 's/\\$// /g' $< | \ $(GOMD2MAN) -in /dev/stdin -out $(subst source/markdown,build/man,$@) .PHONY: docdir |