2012-06-01 17:27:33 +00:00
|
|
|
#!/bin/bash
|
2012-04-30 11:23:03 +00:00
|
|
|
|
2012-11-16 21:40:59 +00:00
|
|
|
# build TiddlyWiki5 for five.tiddlywiki.com
|
|
|
|
|
|
|
|
# First, index.html: the main file, including content
|
2012-04-30 11:23:03 +00:00
|
|
|
|
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 \
|
2012-11-16 22:26:33 +00:00
|
|
|
--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
|
2012-11-16 21:40:59 +00:00
|
|
|
|
|
|
|
# Second, empty.html: empty wiki for reuse
|
|
|
|
|
|
|
|
pushd editions/empty > /dev/null
|
|
|
|
|
|
|
|
node ../../core/boot.js \
|
|
|
|
--verbose \
|
|
|
|
--password password \
|
2012-11-16 22:26:33 +00:00
|
|
|
--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 \
|
2012-11-16 21:40:59 +00:00
|
|
|
|| exit 1
|
|
|
|
|
|
|
|
popd > /dev/null
|