Convert GNU sed extension into more general expression to work with BSD/OSX
This commit is contained in:
parent
4c355488aa
commit
311d7852a6
|
@ -81,7 +81,7 @@ kak : $(objects)
|
||||||
../doc/manpages/%.gz: ../doc/manpages/%.asciidoc
|
../doc/manpages/%.gz: ../doc/manpages/%.asciidoc
|
||||||
$(A2X) --no-xmllint -f manpage $<
|
$(A2X) --no-xmllint -f manpage $<
|
||||||
sed -i -r -e "s,^\.TH .+,.TH KAKOUNE 1 \"\" \"\" \"$(basename $(notdir $<))\"," \
|
sed -i -r -e "s,^\.TH .+,.TH KAKOUNE 1 \"\" \"\" \"$(basename $(notdir $<))\"," \
|
||||||
-e "/^\.SH \"NAME\"/,+1d" $(@:.gz=.1)
|
-e "/^\.SH \"NAME\"/{N;d;}" $(@:.gz=.1)
|
||||||
gzip -f $(@:.gz=.1)
|
gzip -f $(@:.gz=.1)
|
||||||
mv $(@:.gz=.1.gz) $@
|
mv $(@:.gz=.1.gz) $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user