This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
bld.bat
32 lines (31 loc) · 1.68 KB
/
bld.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@ECHO OFF
call setenv %1
echo BUILD: clearing target folder: "cooked/%TIDDLYWIKI_RELEASE%"
mkdir cooked 2> NUL
mkdir %TIDDLYWIKI_DEST% 2> NUL & del /Q %TIDDLYWIKI_DEST%
start /min %TIDDLYWIKI_DEST%
echo - - - - - - - - - - - - - - -
echo BUILD: assembling INDEX.HTML (v%TIDDLYWIKI_RELEASE%)
node %TIDDLYWIKI5_DIR%/tiddlywiki.js ./wiki --verbose --load ./index.html.recipe --rendertiddler $:/core/templates/tiddlywiki2.template.html %TIDDLYWIKI_DEST%/index.html text/plain
echo - - - - - - - - - - - - - - -
echo BUILD: assembling TESTS.HTML (v%TIDDLYWIKI_RELEASE%)
node %TIDDLYWIKI5_DIR%/tiddlywiki.js ./wiki --verbose --load ../tiddlywiki/test/recipes/tests.html.recipe --rendertiddler $:/core/templates/tiddlywiki2.template.html %TIDDLYWIKI_DEST%/tests.html text/plain
echo - - - - - - - - - - - - - - -
echo BUILD: copying TIDDLYSAVER.JAR
copy ..\tiddlywiki\java\TiddlySaver.jar %TIDDLYWIKI_DEST% 1> NUL
echo - - - - - - - - - - - - - - -
echo BUILD: copying JQUERY.JS
copy ..\tiddlywiki\jquery\jquery.js %TIDDLYWIKI_DEST% 1> NUL
echo - - - - - - - - - - - - - - -
echo BUILD: copying JQUERY.TWSTYLESHEET.JS
copy ..\tiddlywiki\jquery\plugins\jQuery.twStylesheet.js %TIDDLYWIKI_DEST% 1> NUL
echo - - - - - - - - - - - - - - -
echo BUILD: creating EMPTY.HTML and INDEX.XML from INDEX.HTML
%BROWSER% phantom_driver.js
echo - - - - - - - - - - - - - - -
echo BUILD: copying INDEX.HTML to TEST/INDEX.%TIDDLYWIKI_RELEASE%.HTML
copy %TIDDLYWIKI_DEST%\index.html %CD%\test\index.%TIDDLYWIKI_RELEASE%.html 1> NUL
echo BUILD: copying EMPTY.HTML to TEST/EMPTY.%TIDDLYWIKI_RELEASE%.HTML
copy %TIDDLYWIKI_DEST%\empty.html %CD%\test\empty.%TIDDLYWIKI_RELEASE%.html 1> NUL
echo - - - - - - - - - - - - - - -
echo BUILD: done