1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Sync bld.cmd with latest bld.sh

Synced bld.cmd to bld.sh, added some mostly cosmetic changes in the command scripts to make them even more 1-to-1 with the .sh scripts.
This commit is contained in:
Adrian Sampaleanu 2013-11-26 16:43:00 -05:00
parent 1b54313615
commit c4a85e3b82
6 changed files with 24 additions and 10 deletions

10
bld.cmd
View File

@ -4,9 +4,14 @@ rem build TiddlyWiki5 for five.tiddlywiki.com
rem Set up the build output directory
if "x%TW5_BUILD_OUTPUT%" == "x" (set TW5_BUILD_OUTPUT=..\jermolene.github.com)
if "x%TW5_BUILD_OUTPUT%" == "x" (
set TW5_BUILD_OUTPUT=..\jermolene.github.com
)
if not exist %TW5_BUILD_OUTPUT%\nul echo A valid TW5_BUILD_OUTPUT environment variable must be set
if not exist %TW5_BUILD_OUTPUT%\nul (
echo A valid TW5_BUILD_OUTPUT environment variable must be set
exit 1
)
echo Using TW5_BUILD_OUTPUT as %TW5_BUILD_OUTPUT%
echo.
@ -32,6 +37,7 @@ node .\tiddlywiki.js ^
--rendertiddler ReadMe .\readme.md text/html ^
--rendertiddler ContributingTemplate .\contributing.md text/html ^
--rendertiddler $:/core/save/all %TW5_BUILD_OUTPUT%\index.html text/plain ^
--rendertiddler $:/editions/tw5.com/save-empty %TW5_BUILD_OUTPUT%\empty2.html text/plain ^
--rendertiddler $:/core/templates/static.template.html %TW5_BUILD_OUTPUT%\static.html text/plain ^
--rendertiddler $:/core/templates/static.template.css %TW5_BUILD_OUTPUT%\static\static.css text/plain ^
--rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html %TW5_BUILD_OUTPUT%\static text/plain ^

View File

@ -1,4 +1,4 @@
@echo
@echo off
rem Publish to NPM
@ -6,7 +6,7 @@ npm publish || exit 1
rem Deploy latest build to github
pushd ..\mytiddlywiki.github.com
pushd ..\jermolene.github.com
git add --all || exit 1

View File

@ -1,4 +1,4 @@
@echo
@echo off
rem Split the tiddlers out of a TiddlyWiki file

View File

@ -4,9 +4,14 @@ rem test TiddlyWiki5 for five.tiddlywiki.com
rem Set up the build output directory
if "x%TW5_BUILD_OUTPUT%" == "x" (set TW5_BUILD_OUTPUT=%TMP%\mytiddlywiki.github.com)
if "x%TW5_BUILD_OUTPUT%" == "x" (
set TW5_BUILD_OUTPUT=..\jermolene.github.com
)
if not exist %TW5_BUILD_OUTPUT%\nul echo A valid TW5_BUILD_OUTPUT environment variable must be set
if not exist %TW5_BUILD_OUTPUT%\nul (
echo A valid TW5_BUILD_OUTPUT environment variable must be set
exit 1
)
echo Using TW5_BUILD_OUTPUT as %TW5_BUILD_OUTPUT%

View File

@ -1,8 +1,11 @@
@echo
@echo off
rem Bump to a new version number
if "x%1" == "x" echo "Missing version (eg '5.0.0-alpha.99')" && exit 1
if "x%1" == "x" (
echo Missing version (eg '5.0.0-alpha.99'^)
exit 1
)
rem Set the new version number (will also commit and tag the release)

View File

@ -1,4 +1,4 @@
@echo
@echo off
rem build the TiddlyWeb edition of TiddlyWiki5 and upload it to TiddlySpace. Requires the TiddlySpace credentials
rem of a member of the tw5tiddlyweb space