From 11f7d1ce2daceb41f52422fef5d402e33d85ff42 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Tue, 30 Oct 2018 15:18:40 +0100 Subject: [PATCH] Convert script adds utf8 and jquery and makes a proper website! --- convert.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/convert.sh b/convert.sh index a817143..c777467 100755 --- a/convert.sh +++ b/convert.sh @@ -1,4 +1,13 @@ #!/bin/bash cd $(dirname "$0") -xsltproc -o out.html view.xsl examples/$1.xml + +FILE="out.html" +FILE_TMP="tmp.html" + +echo "" > $FILE +xsltproc -o $FILE_TMP view.xsl examples/$1.xml +cat $FILE_TMP >> $FILE +echo "" >> $FILE + +rm $FILE_TMP