aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-07-07 02:30:33 +0000
committerGogs <gogitservice@gmail.com>2017-07-07 02:30:33 +0000
commite216f37f07ff150f9dec18aa7eba0311e9cd0cb1 (patch)
tree4406875de167e2a801cb1089c56581b7d2910905 /www
parent693c014d21038c100c7ef0425ea5c006d0ba040e (diff)
parent497a49162f7c8b5c1d7c653087b0ac6c8e5765f9 (diff)
downloadlibrebootfr-e216f37f07ff150f9dec18aa7eba0311e9cd0cb1.tar.gz
librebootfr-e216f37f07ff150f9dec18aa7eba0311e9cd0cb1.zip
Merge branch 'fix-publish-sh-openbsd' of mreed/libreboot into master
Diffstat (limited to 'www')
-rwxr-xr-xwww/publish.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/www/publish.sh b/www/publish.sh
index cdf3a72a..264c95a1 100755
--- a/www/publish.sh
+++ b/www/publish.sh
@@ -54,12 +54,12 @@ if [ "${FILE}" != "./docs/fdl-1.3" ] && [ "${FILE}" != "./conduct" ]; then
fi
# change out .md -> .html
-sed temp.md -i -e 's/\.md\(#[a-z\-]*\)*)/.html\1)/g'
-sed temp.md -i -e 's/\.md\(#[a-z\-]*\)*]/.html\1]/g'
+sed -i -e 's/\.md\(#[a-z\-]*\)*)/.html\1)/g' temp.md
+sed -i -e 's/\.md\(#[a-z\-]*\)*]/.html\1]/g' temp.md
# change out .md -> .html
-sed temp.md -i -e 's/\.md\(#[a-z\-]*\)*)/.html\1)/g'
-sed temp.md -i -e 's/\.md\(#[a-z\-]*\)*]/.html\1]/g'
+sed -i -e 's/\.md\(#[a-z\-]*\)*)/.html\1)/g' temp.md
+sed -i -e 's/\.md\(#[a-z\-]*\)*]/.html\1]/g' temp.md
# work around issue #2872
TOC=$(grep -q "^x-toc-enable: true$" temp.md && printf '%s\n' "--toc --toc-depth=2") || TOC=""
@@ -75,4 +75,4 @@ pandoc $TOC $SMART temp.md -s --css /global.css $OPTS \
pandoc $1 > $FILE.bare.html
# generate section title anchors as [link]
-sed $FILE.html -i -e 's_^<h\([123]\) id="\(.*\)">\(.*\)</h\1>_<div class="h"><h\1 id="\2">\3</h\1><a aria-hidden="true" href="#\2">[link]</a></div>_'
+sed -i -e 's_^<h\([123]\) id="\(.*\)">\(.*\)</h\1>_<div class="h"><h\1 id="\2">\3</h\1><a aria-hidden="true" href="#\2">[link]</a></div>_' $FILE.html