2012-11-16 17:01:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# build the TiddlyWeb edition of TiddlyWiki5 and upload to TiddlySpace
|
|
|
|
|
|
|
|
# usage:
|
|
|
|
# ./wbld.sh <tiddlyspace username> <tiddlyspace password>
|
|
|
|
|
2012-11-16 21:27:53 +00:00
|
|
|
pushd editions/tw5tiddlyweb > /dev/null
|
2012-11-16 17:01:04 +00:00
|
|
|
|
2012-11-29 21:30:53 +00:00
|
|
|
node ../../tiddlywiki.js \
|
2012-11-16 17:01:04 +00:00
|
|
|
--verbose \
|
2012-11-16 22:26:33 +00:00
|
|
|
--savetiddler $:/core/templates/tiddlywiki5.template.html ../../../jermolene.github.com/tiddlyweb.html text/plain \
|
2012-11-16 17:01:04 +00:00
|
|
|
|| exit 1
|
|
|
|
|
|
|
|
popd > /dev/null
|
|
|
|
|
|
|
|
mkdir -p tmp
|
|
|
|
echo "type: text/html" > tmp/tmp.txt
|
|
|
|
echo "" >> tmp/tmp.txt
|
|
|
|
cat ../jermolene.github.com/tiddlyweb.html >> tmp/tmp.txt
|
|
|
|
|
2012-11-20 16:31:39 +00:00
|
|
|
curl -u $1:$2 -X PUT -H "content-type: text/plain" http://tw5tiddlyweb.tiddlyspace.com/bags/tw5tiddlyweb_public/tiddlers/tw5 --data-binary @tmp/tmp.txt
|
2012-11-29 21:30:53 +00:00
|
|
|
|
|
|
|
rm tmp/tmp.txt
|