2018-10-29 16:57:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd $(dirname "$0")
|
2018-10-30 14:18:40 +00:00
|
|
|
|
|
|
|
FILE="out.html"
|
|
|
|
FILE_TMP="tmp.html"
|
|
|
|
|
|
|
|
echo "<!DOCTYPE html><html><head><meta charset="utf-8" /><script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js\"></script></head><body>" > $FILE
|
|
|
|
xsltproc -o $FILE_TMP view.xsl examples/$1.xml
|
|
|
|
cat $FILE_TMP >> $FILE
|
|
|
|
echo "</body></html>" >> $FILE
|
|
|
|
|
|
|
|
rm $FILE_TMP
|