2012-06-01 17:27:33 +00:00
|
|
|
#!/bin/bash
|
2012-05-29 21:02:38 +00:00
|
|
|
|
|
|
|
# build TiddlyWiki 2.x
|
|
|
|
|
|
|
|
# create a temporary directory if it doesn't already exist
|
|
|
|
mkdir -p tmp
|
|
|
|
mkdir -p tmp/tw2
|
|
|
|
|
2013-02-09 17:08:19 +00:00
|
|
|
# Prepare the readme file from the revelant content in the tw5.com wiki
|
2013-01-22 09:08:26 +00:00
|
|
|
|
2013-02-09 17:08:19 +00:00
|
|
|
node ./tiddlywiki.js \
|
|
|
|
editions/tw5.com \
|
2013-01-22 09:08:26 +00:00
|
|
|
--verbose \
|
2013-10-27 22:55:36 +00:00
|
|
|
--new_rendertiddler TiddlyWiki2ReadMe editions/tw2/readme.md text/html \
|
2013-01-22 09:08:26 +00:00
|
|
|
|| exit 1
|
|
|
|
|
|
|
|
# cook the TiddlyWiki 2.x.x index file
|
2012-05-29 21:02:38 +00:00
|
|
|
|
2013-02-09 17:08:19 +00:00
|
|
|
node ./tiddlywiki.js \
|
|
|
|
editions/tw2 \
|
2012-05-29 21:02:38 +00:00
|
|
|
--verbose \
|
2013-02-09 17:08:19 +00:00
|
|
|
--load editions/tw2/source/tiddlywiki.com/index.html.recipe \
|
2013-10-27 22:55:36 +00:00
|
|
|
--new_rendertiddler $:/core/templates/tiddlywiki2.template.html ./tmp/tw2/index.html text/plain \
|
2012-05-29 21:02:38 +00:00
|
|
|
|| exit 1
|
|
|
|
|
2013-10-27 22:55:36 +00:00
|
|
|
diff -q tmp/tw2/index.html editions/tw2/target/prebuilt.html
|