1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 17:40:29 +00:00
TiddlyWiki5/2bld.sh

27 lines
661 B
Bash
Raw Normal View History

2012-06-01 17:27:33 +00:00
#!/bin/bash
# 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 \
--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
2013-02-09 17:08:19 +00:00
node ./tiddlywiki.js \
editions/tw2 \
--verbose \
2013-02-09 17:08:19 +00:00
--load editions/tw2/source/tiddlywiki.com/index.html.recipe \
--rendertiddler $:/core/templates/tiddlywiki2.template.html ./tmp/tw2/index.html text/plain \
|| exit 1
diff -q tmp/tw2/index.html editions/tw2/target/prebuilt.html