TiddlyWiki5/2bld.sh

27 wiersze
661 B
Bash
Czysty Zwykły widok Historia

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