-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
54 lines (44 loc) · 1 KB
/
make.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
42
43
44
45
46
47
48
49
50
51
52
53
54
@ECHO OFF
set THEME="%HOMEDRIVE%%HOMEPATH%\.spm\themes\chopper"
set SITE=_site
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is on of
echo. build-doc to make documentation
echo. debug to make a debug server
echo. server to make a normal server
echo. watch to make a watch server
echo. publish-doc to publish documentation
goto end
)
if "%1" == "clean" (
for /d %%i in (%SITE%\*) do rmdir /q /s %%i
del /q /s %SITE%\*
goto end
)
if "%1" == "build-doc" (
nico build -v -C %THEME%\nico.js
goto end
)
if "%1" == "debug" (
nico server -v -C %THEME%\nico.js --watch debug
goto end
)
if "%1" == "watch" (
nico server -v -C %THEME%\nico.js --watch
goto end
)
if "%1" == "server" (
nico server -v -C %THEME%\nico.js
goto end
)
if "%1" == "publish-doc" (
spm publish --doc _site -s chopper
goto end
)
if "%1" == "build" (
spm build
goto end
)
:end