mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
22 lines
436 B
Bash
Executable File
22 lines
436 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 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 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
|