2014-02-12 18:29:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# build the Tank edition of TiddlyWiki
|
|
|
|
|
|
|
|
# See https://tank.peermore.com
|
|
|
|
|
|
|
|
# Open the tank edition in TW5 and save the template for the main HTML file
|
|
|
|
|
|
|
|
node ./tiddlywiki.js \
|
|
|
|
editions/tw5tank \
|
|
|
|
--verbose \
|
2014-04-27 07:28:21 +00:00
|
|
|
--output tmp \
|
|
|
|
--rendertiddler $:/core/save/all app.html text/plain \
|
2014-02-12 18:29:32 +00:00
|
|
|
|| exit 1
|
|
|
|
|
|
|
|
# Prepend the type information that TiddlyWeb needs to turn the .html file into a .tid file
|
|
|
|
|
|
|
|
echo "type: text/html" > tmp/app.txt
|
|
|
|
echo "" >> tmp/app.txt
|
|
|
|
cat tmp/app.html >> tmp/app.txt
|