]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make a sed script in doc/arm/Makefile.in portable
authorMichał Kępień <michal@isc.org>
Thu, 20 Feb 2020 11:23:36 +0000 (12:23 +0100)
committerMichał Kępień <michal@isc.org>
Thu, 20 Feb 2020 11:24:23 +0000 (12:24 +0100)
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)

doc/arm/Makefile.in

index 4cc486a3d9885f22535edcc61dc9c5ce5d9189db..e3e63bd5bbf0dd074662ddf7fbd70b9ee2894613 100644 (file)
@@ -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