mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-04 17:16:18 +00:00
20f03de712
Getting rid of the old widget mechanism files finally gives us a payoff for all the refactoring. Still a bit of tidying up to do, and we need to re-introduce the animation mechanisms.
27 lines
669 B
Bash
Executable File
27 lines
669 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
|
|
|
|
# Prepare the readme file from the revelant content in the tw5.com wiki
|
|
|
|
node ./tiddlywiki.js \
|
|
editions/tw5.com \
|
|
--verbose \
|
|
--new_rendertiddler TiddlyWiki2ReadMe editions/tw2/readme.md text/html \
|
|
|| exit 1
|
|
|
|
# cook the TiddlyWiki 2.x.x index file
|
|
|
|
node ./tiddlywiki.js \
|
|
editions/tw2 \
|
|
--verbose \
|
|
--load editions/tw2/source/tiddlywiki.com/index.html.recipe \
|
|
--new_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
|