doc/makefile: simplify sed expression
authorMarko Kreen <markokr@gmail.com>
Wed, 28 Dec 2011 20:19:06 +0000 (22:19 +0200)
committerMarko Kreen <markokr@gmail.com>
Wed, 28 Dec 2011 20:19:06 +0000 (22:19 +0200)
older seds dont like ';'

doc/Makefile

index fe8d3d55ade436f17d49323d4d8580769f1cfc04..3570fc18507b99ba287332d7b06be9795b3c9645 100644 (file)
@@ -105,7 +105,7 @@ endif
 html/%.html: %.txt $(COMMON)
        @mkdir -p html
        LANG=C cat $< \
-       | sed -e '/^include/b;s,\([A-Za-z.0-9]*\)[.]txt,link:\1.html[],g' \
+       | sed -e '/^include/b' -e 's,\([A-Za-z.0-9]*\)[.]txt,link:\1.html[],g' \
        | $(ASCIIDOC) $(AFLAGS) -a toc `$(GETATTRS) $<` -o - - \
        | sed -e "/^[/][*] Workarounds/r ../misc/extra.css" \
        > $@