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-01-22 09:08:26 +00:00
|
|
|
# Prepare the readme file from the revelant content in the tw5.com content
|
|
|
|
|
|
|
|
pushd editions/tw5.com > /dev/null
|
|
|
|
|
|
|
|
node ../../tiddlywiki.js \
|
|
|
|
--verbose \
|
|
|
|
--savetiddler TiddlyWiki2ReadMe ../tw2/readme.md text/html \
|
|
|
|
|| exit 1
|
|
|
|
|
|
|
|
popd > /dev/null
|
|
|
|
|
|
|
|
# cook the TiddlyWiki 2.x.x index file
|
2012-05-29 21:02:38 +00:00
|
|
|
|
2012-11-16 21:27:53 +00:00
|
|
|
pushd editions/tw2 > /dev/null
|
2012-05-29 21:02:38 +00:00
|
|
|
|
2012-11-29 21:30:53 +00:00
|
|
|
node ../../tiddlywiki.js \
|
2012-05-29 21:02:38 +00:00
|
|
|
--verbose \
|
|
|
|
--load source/tiddlywiki.com/index.html.recipe \
|
2012-11-16 21:27:53 +00:00
|
|
|
--savetiddler $:/core/templates/tiddlywiki2.template.html ../../tmp/tw2/index.html text/plain \
|
2012-05-29 21:02:38 +00:00
|
|
|
|| exit 1
|
|
|
|
|
|
|
|
popd > /dev/null
|
|
|
|
|
2012-11-16 21:27:53 +00:00
|
|
|
opendiff tmp/tw2/index.html editions/tw2/target/index.2.6.5.html
|