1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-05 01:26:18 +00:00
TiddlyWiki5/2bld.sh
Jeremy Ruston a1c8ac624f Added first pass at support for building TiddlyWiki 2.6.x with TW5
There are still some whitespace and attribute ordering issues, but the
result runs correctly.
2012-05-29 22:02:38 +01:00

23 lines
482 B
Bash
Executable File

#!/bin/sh
# build TiddlyWiki 2.x
# create a temporary directory if it doesn't already exist
mkdir -p tmp
mkdir -p tmp/tw2
# cook TiddlyWiki5
pushd tw2 > /dev/null
node ../core/boot.js \
--verbose \
--load shadows/tiddlywiki2.template.html.tid \
--load source/tiddlywiki.com/index.html.recipe \
--savetiddler $:/core/templates/tiddlywiki2.template.html ../tmp/tw2/index.html text/plain \
|| exit 1
popd > /dev/null
opendiff tmp/tw2/index.html tw2/target/index.2.6.5.html