forked from TiddlyWiki/tiddlywiki.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbld.bat
41 lines (40 loc) · 2.77 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
33
34
35
36
37
38
39
40
41
@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 %TIDDLYWIKI5_DIR%/editions/tw2 --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 %TIDDLYWIKI5_DIR%/editions/tw2 --verbose --load ../tiddlywiki/test/recipes/tests.html.recipe --rendertiddler $:/core/templates/tiddlywiki2.template.html %TIDDLYWIKI_DEST%/tests.html text/plain
echo - - - - - - - - - - - - - - -
echo BUILD: creating TIDDLYWIKI_EXTERNALJS.HTML (v%TIDDLYWIKI_RELEASE%)
node %TIDDLYWIKI5_DIR%/tiddlywiki.js %TIDDLYWIKI5_DIR%/editions/tw2 --verbose --load ../tiddlywiki/tiddlywiki_externaljs.html.recipe --rendertiddler $:/core/templates/tiddlywiki2.template.html %TIDDLYWIKI_DEST%/tiddlywiki_externaljs.html text/plain
echo - - - - - - - - - - - - - - -
echo BUILD: creating TIDDLYWIKI_EXTERNALJS_TIDDLYSPACE.HTML (v%TIDDLYWIKI_RELEASE%)
node %TIDDLYWIKI5_DIR%/tiddlywiki.js %TIDDLYWIKI5_DIR%/editions/tw2 --verbose --load ../tiddlywiki/tiddlywiki_externaljs_tiddlyspace.html.recipe --rendertiddler $:/core/templates/tiddlywiki2.template.html %TIDDLYWIKI_DEST%/tiddlywiki_externaljs_tiddlyspace.html text/plain
echo - - - - - - - - - - - - - - -
echo BUILD: creating TWCORE.JS (v%TIDDLYWIKI_RELEASE%)
node %TIDDLYWIKI5_DIR%/tiddlywiki.js %TIDDLYWIKI5_DIR%/editions/tw2 --verbose --load ../tiddlywiki/tiddlywikinosaver.html.recipe --rendertiddler $:/core/templates/tiddlywiki2.externaljs.template.html %TIDDLYWIKI_DEST%/twcore.js 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