2011-12-13 12:30:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# build TiddlyWiki5
|
|
|
|
|
|
|
|
# create a temporary directory if it doesn't already exist
|
|
|
|
mkdir -p tmp
|
|
|
|
mkdir -p tmp/tw5
|
2011-12-13 12:48:11 +00:00
|
|
|
|
|
|
|
# cook TiddlyWiki5
|
2012-01-15 11:57:28 +00:00
|
|
|
node tiddlywiki.js --recipe $PWD/tiddlywiki5/tiddlywiki5.recipe --savewiki tmp/tw5 --savetiddler ReadMe readme.md || exit 1
|
2012-01-15 11:45:58 +00:00
|
|
|
|
2012-03-03 16:50:11 +00:00
|
|
|
# cook a static version too
|
|
|
|
#mkdir -p tmp/tw5/static
|
|
|
|
#node tiddlywiki.js --recipe $PWD/tiddlywiki5/tiddlywiki5.recipe --savehtml tmp/tw5/static
|
2011-12-13 12:30:09 +00:00
|
|
|
|
|
|
|
# open the result
|
2011-12-13 12:48:11 +00:00
|
|
|
#open -a /Applications/Google\ Chrome.app tmp/tw5/index.html
|