diff --git a/doc/manpages/commands.asciidoc b/doc/manpages/commands.asciidoc index bd7dd538..f80f920a 100644 --- a/doc/manpages/commands.asciidoc +++ b/doc/manpages/commands.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/execeval.asciidoc b/doc/manpages/execeval.asciidoc index 0d919534..fad60a9c 100644 --- a/doc/manpages/execeval.asciidoc +++ b/doc/manpages/execeval.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/expansions.asciidoc b/doc/manpages/expansions.asciidoc index 739d712b..48e47fdd 100644 --- a/doc/manpages/expansions.asciidoc +++ b/doc/manpages/expansions.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/faces.asciidoc b/doc/manpages/faces.asciidoc index 7a6bec83..6e6ba3d8 100644 --- a/doc/manpages/faces.asciidoc +++ b/doc/manpages/faces.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/faq.asciidoc b/doc/manpages/faq.asciidoc index ca40041c..2c0e35bc 100644 --- a/doc/manpages/faq.asciidoc +++ b/doc/manpages/faq.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/highlighters.asciidoc b/doc/manpages/highlighters.asciidoc index 0d804bbb..b826efee 100644 --- a/doc/manpages/highlighters.asciidoc +++ b/doc/manpages/highlighters.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/hooks.asciidoc b/doc/manpages/hooks.asciidoc index 0207d2b4..81cb815e 100644 --- a/doc/manpages/hooks.asciidoc +++ b/doc/manpages/hooks.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/keys.asciidoc b/doc/manpages/keys.asciidoc index ab5a7510..0873fa8b 100644 --- a/doc/manpages/keys.asciidoc +++ b/doc/manpages/keys.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/mapping.asciidoc b/doc/manpages/mapping.asciidoc index 3d053e33..1a11d312 100644 --- a/doc/manpages/mapping.asciidoc +++ b/doc/manpages/mapping.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/options.asciidoc b/doc/manpages/options.asciidoc index a569ce1e..3e622aa3 100644 --- a/doc/manpages/options.asciidoc +++ b/doc/manpages/options.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/registers.asciidoc b/doc/manpages/registers.asciidoc index eb8e45c5..8b417a36 100644 --- a/doc/manpages/registers.asciidoc +++ b/doc/manpages/registers.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/doc/manpages/scopes.asciidoc b/doc/manpages/scopes.asciidoc index 2f420207..9df5458b 100644 --- a/doc/manpages/scopes.asciidoc +++ b/doc/manpages/scopes.asciidoc @@ -1,4 +1,4 @@ -KAKOUNE(1) +kakoune(k) ========== NAME diff --git a/src/Makefile b/src/Makefile index cde2b943..25b53ffa 100644 --- a/src/Makefile +++ b/src/Makefile @@ -84,10 +84,10 @@ kak$(suffix) : $(objects) # we generate the pages, patch them and then compress them ../doc/manpages/%.gz: ../doc/manpages/%.asciidoc a2x --no-xmllint -f manpage $< - sed -i -r -e "s,^\.TH .+,.TH KAKOUNE 1 \"\" \"\" \"$(basename $(notdir $<))\"," \ - -e "/^\.SH \"NAME\"/{N;d;}" $(@:.gz=.1) - gzip -n -9 -f $(@:.gz=.1) - mv -f $(@:.gz=.1.gz) $@ + sed -i -r -e "s,^\.TH .+,.TH kakoune k \"\" \"\" \"$(basename $(notdir $<))\"," \ + -e "/^\.SH \"NAME\"/{N;d;}" $(@:.gz=.k) + gzip -n -9 -f $(@:.gz=.k) + mv -f $(@:.gz=.k.gz) $@ check: test test: