From: Michał Kępień Date: Thu, 20 Feb 2020 11:23:36 +0000 (+0100) Subject: Make a sed script in doc/arm/Makefile.in portable X-Git-Tag: v9.14.12~23^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=309a14ee8a14e90c5c6070f3b20703b11a0bfe4d;p=thirdparty%2Fbind9.git Make a sed script in doc/arm/Makefile.in portable BSD sed does not recognize \s as a whitespace matching token. Make the sed script in doc/arm/Makefile.in which ensures GitLab identifiers are not split across lines portable by replacing \s with [[:space:]]. (cherry picked from commit b25e6b51f6e16c983ab7c0f5cd8187bdd197b8d3) --- diff --git a/doc/arm/Makefile.in b/doc/arm/Makefile.in index 4cc486a3d98..e3e63bd5bbf 100644 --- a/doc/arm/Makefile.in +++ b/doc/arm/Makefile.in @@ -69,7 +69,7 @@ notes.txt: notes.html ${W3M} -dump -cols 75 -O ascii -T text/html < notes.html | \ sed 's/ *$$//' | \ sed -e :a -e '/^\n*$$/{$$d;N;};/\n$$/ba' | \ - sed '/ [!#]$$/{N;s| \([!#]\)\(\n\s*\)\([0-9][0-9]*\)|\2\1\3|;};' > notes.txt + sed '/ [!#]$$/{N;s| \([!#]\)\(\n[[:space:]]*\)\([0-9][0-9]*\)|\2\1\3|;};' > notes.txt # use xmllint to process include Bv9ARM.html: Bv9ARM-book.xml ${NOTESXML} releaseinfo.xml pkgversion.xml noteversion.xml