libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 8692bfaf02fd6fffba1e743f1923574f83932853
parent 3b5612ecccb3fa0b54e44a9014abb90750dbd6d9
Author: Andrew Robbins <contact@andrewrobbins.info>
Date:   Thu, 13 Jul 2017 19:33:55 +0000

Merge branch 'publish-sh-shellcheck' of mreed/libreboot into master

Diffstat:
www/publish.sh | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/publish.sh b/www/publish.sh @@ -70,14 +70,14 @@ TOC=$(grep -q "^x-toc-enable: true$" "$TMPFILE" && printf '%s\n' "--toc --toc-de SMART=$(pandoc -v | grep -q '2\.0' || printf '%s\n' "--smart") || SMART="" # chuck through pandoc -pandoc $TOC $SMART "$TMPFILE" -s --css /global.css $OPTS \ - --template template.html --metadata return="$RETURN"> $FILE.html +pandoc $TOC $SMART "$TMPFILE" -s --css /global.css "$OPTS" \ + --template template.html --metadata return="$RETURN" > "$FILE.html" # additionally, produce bare file for RSS -pandoc $1 > $FILE.bare.html +pandoc "$1" > "$FILE.bare.html" # generate section title anchors as [link] -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 +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" # clean up temporary file rm -f "$TMPFILE"