1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-19 00:04:51 +00:00
TiddlyWiki5/bld.sh

34 lines
1.1 KiB
Bash
Raw Normal View History

2012-06-01 17:27:33 +00:00
#!/bin/bash
# build TiddlyWiki5 for five.tiddlywiki.com
# First, index.html: the main file, including content
2012-11-16 21:27:53 +00:00
pushd editions/tw5.com > /dev/null
2012-05-05 22:32:04 +00:00
2012-11-16 21:27:53 +00:00
echo "five.tiddlywiki.com" > ../../../jermolene.github.com/CNAME
2012-06-21 11:53:56 +00:00
2012-11-16 21:27:53 +00:00
node ../../core/boot.js \
2012-05-05 22:32:04 +00:00
--verbose \
2012-09-02 20:00:24 +00:00
--password password \
2012-11-16 21:27:53 +00:00
--savetiddler ReadMe ../../readme.md text/html \
--savetiddler $:/core/templates/tiddlywiki5.template.html ../../../jermolene.github.com/index.html text/plain \
--savetiddler $:/core/templates/tiddlywiki5.encrypted.template.html ../../../jermolene.github.com/encrypted.html text/plain \
2012-11-16 21:27:53 +00:00
--savetiddler $:/core/templates/static.template.html ../../../jermolene.github.com/static.html text/plain \
2012-05-05 22:32:04 +00:00
|| exit 1
popd > /dev/null
# Second, empty.html: empty wiki for reuse
pushd editions/empty > /dev/null
node ../../core/boot.js \
--verbose \
--password password \
--savetiddler $:/core/templates/tiddlywiki5.template.html ../../../jermolene.github.com/empty.html text/plain \
--savetiddler $:/core/templates/tiddlywiki5.encrypted.template.html ../../../jermolene.github.com/empty_encrypted.html text/plain \
|| exit 1
popd > /dev/null