mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-03 04:39:10 +00:00
Updated bld.sh to check for instead of using hardcoded value
This commit is contained in:
parent
7642f2182c
commit
dbe751fd2f
22
bld.sh
22
bld.sh
@ -6,15 +6,25 @@
|
|||||||
|
|
||||||
pushd editions/tw5.com > /dev/null
|
pushd editions/tw5.com > /dev/null
|
||||||
|
|
||||||
echo "five.tiddlywiki.com" > ../../../jermolene.github.com/CNAME
|
if [ -z "$JERMOLENE_HOME" ]; then
|
||||||
|
JERMOLENE_HOME=../../../jermolene.github.com
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "$JERMOLENE_HOME" ]; then
|
||||||
|
echo 'A valid JERMOLENE_HOME directory must be set'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Using JERMOLENE_HOME as [$JERMOLENE_HOME]"
|
||||||
|
echo "five.tiddlywiki.com" > $JERMOLENE_HOME/CNAME
|
||||||
|
|
||||||
node ../../tiddlywiki.js \
|
node ../../tiddlywiki.js \
|
||||||
--verbose \
|
--verbose \
|
||||||
--password password \
|
--password password \
|
||||||
--savetiddler ReadMe ../../readme.md text/html \
|
--savetiddler ReadMe ../../readme.md text/html \
|
||||||
--savetiddler $:/core/templates/tiddlywiki5.template.html ../../../jermolene.github.com/index.html text/plain \
|
--savetiddler $:/core/templates/tiddlywiki5.template.html $JERMOLENE_HOME/index.html text/plain \
|
||||||
--savetiddler $:/core/templates/tiddlywiki5.encrypted.template.html ../../../jermolene.github.com/encrypted.html text/plain \
|
--savetiddler $:/core/templates/tiddlywiki5.encrypted.template.html $JERMOLENE_HOME/encrypted.html text/plain \
|
||||||
--savetiddler $:/core/templates/static.template.html ../../../jermolene.github.com/static.html text/plain \
|
--savetiddler $:/core/templates/static.template.html $JERMOLENE_HOME/static.html text/plain \
|
||||||
|| exit 1
|
|| exit 1
|
||||||
|
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
@ -26,8 +36,8 @@ pushd editions/empty > /dev/null
|
|||||||
node ../../tiddlywiki.js \
|
node ../../tiddlywiki.js \
|
||||||
--verbose \
|
--verbose \
|
||||||
--password password \
|
--password password \
|
||||||
--savetiddler $:/core/templates/tiddlywiki5.template.html ../../../jermolene.github.com/empty.html text/plain \
|
--savetiddler $:/core/templates/tiddlywiki5.template.html $JERMOLENE_HOME/empty.html text/plain \
|
||||||
--savetiddler $:/core/templates/tiddlywiki5.encrypted.template.html ../../../jermolene.github.com/empty_encrypted.html text/plain \
|
--savetiddler $:/core/templates/tiddlywiki5.encrypted.template.html $JERMOLENE_HOME/empty_encrypted.html text/plain \
|
||||||
|| exit 1
|
|| exit 1
|
||||||
|
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user