2012-06-01 18:27:33 +01:00
|
|
|
#!/bin/bash
|
2012-04-30 12:23:03 +01:00
|
|
|
|
|
|
|
# build TiddlyWiki5
|
|
|
|
|
|
|
|
# create a temporary directory if it doesn't already exist
|
|
|
|
mkdir -p tmp
|
|
|
|
mkdir -p tmp/tw5
|
|
|
|
|
|
|
|
# cook TiddlyWiki5
|
2012-05-05 23:32:04 +01:00
|
|
|
|
|
|
|
pushd tw5.com > /dev/null
|
|
|
|
|
|
|
|
node ../core/boot.js \
|
|
|
|
--verbose \
|
2012-05-05 23:08:00 +01:00
|
|
|
--savetiddler ReadMe ../readme.md text/html \
|
2012-05-20 15:20:21 +01:00
|
|
|
--savetiddler $:/core/templates/tiddlywiki5.template.html ../tmp/tw5/index.html text/plain \
|
|
|
|
--savetiddler $:/core/templates/static.template.html ../tmp/tw5/static.html text/plain \
|
2012-05-05 23:32:04 +01:00
|
|
|
|| exit 1
|
|
|
|
|
|
|
|
popd > /dev/null
|