2012-10-10 09:47:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# build TiddlyWiki5 in the Sky for Dropbox
|
|
|
|
|
2012-11-11 15:52:52 +00:00
|
|
|
# Copy the dummy content
|
|
|
|
|
|
|
|
rm ../../../Apps/TiddlyWiki5/My\ TiddlyWiki/tiddlers/*.*
|
|
|
|
cp tw5dropbox/dummycontent/*.* ../../../Apps/TiddlyWiki5/My\ TiddlyWiki/tiddlers
|
|
|
|
|
|
|
|
# Build the app wiki
|
|
|
|
|
2012-11-16 21:27:53 +00:00
|
|
|
pushd editions/tw5dropbox/appwiki > /dev/null
|
2012-10-10 09:47:05 +00:00
|
|
|
|
2012-11-16 21:27:53 +00:00
|
|
|
node ../../../core/boot.js \
|
2012-10-10 09:47:05 +00:00
|
|
|
--verbose \
|
2012-11-16 22:26:33 +00:00
|
|
|
--savetiddler $:/plugins/dropbox/tw5dropbox.template.js ../../../../../../Apps/Static\ Web\ Apps/TiddlyWiki5/public/tw5dropbox.js text/plain \
|
|
|
|
--savetiddler $:/plugins/dropbox/index.template.html ../../../../../../Apps/TiddlyWiki5/My\ TiddlyWiki/index.html text/plain \
|
|
|
|
--savetiddler $:/plugins/dropbox/index.template.html ../../../../../../Apps/Static\ Web\ Apps/TiddlyWiki5/public/apptemplate.html text/plain \
|
|
|
|
--savetiddler $:/plugins/dropbox/styles.template.css ../../../../../../Apps/Static\ Web\ Apps/TiddlyWiki5/public/styles.css text/plain \
|
2012-10-10 09:47:05 +00:00
|
|
|
|| exit 1
|
|
|
|
|
|
|
|
popd > /dev/null
|
2012-10-10 20:59:25 +00:00
|
|
|
|
2012-11-11 15:52:52 +00:00
|
|
|
# Build the main wiki
|
|
|
|
|
2012-11-16 21:27:53 +00:00
|
|
|
pushd editions/tw5dropbox/mainwiki > /dev/null
|
2012-10-10 20:59:25 +00:00
|
|
|
|
2012-11-16 21:27:53 +00:00
|
|
|
node ../../../core/boot.js \
|
2012-10-10 20:59:25 +00:00
|
|
|
--verbose \
|
2012-11-16 22:26:33 +00:00
|
|
|
--savetiddler $:/plugins/dropbox/index.template.html ../../../../../../Apps/Static\ Web\ Apps/TiddlyWiki5/public/index.html text/plain \
|
2012-10-10 20:59:25 +00:00
|
|
|
|| exit 1
|
|
|
|
|
|
|
|
popd > /dev/null
|