-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
47 lines (41 loc) · 1.27 KB
/
build.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
@SETLOCAL ENABLEDELAYEDEXPANSION
@ECHO OFF
GOTO :Main
:Lower
SET %~1=!%1:A=a!&SET %~1=!%1:B=b!&SET %~1=!%1:C=c!&SET %~1=!%1:D=d!&SET %~1=!%1:E=e!&SET %~1=!%1:F=f!&SET %~1=!%1:G=g!&SET %~1=!%1:H=h!&SET %~1=!%1:I=i!&SET %~1=!%1:J=j!&SET %~1=!%1:K=k!&SET %~1=!%1:L=l!&SET %~1=!%1:M=m!&SET %~1=!%1:N=n!&SET %~1=!%1:O=o!&SET %~1=!%1:P=p!&SET %~1=!%1:Q=q!&SET %~1=!%1:R=r!&SET %~1=!%1:S=s!&SET %~1=!%1:T=t!&SET %~1=!%1:U=u!&SET %~1=!%1:V=v!&SET %~1=!%1:W=w!&SET %~1=!%1:X=x!&SET %~1=!%1:Y=y!&SET %~1=!%1:Z=z!
GOTO:EOF
:Main
PUSHD src
2>NUL WHERE MOONC>nul
IF %ERRORLEVEL% NEQ 0 (
ECHO.
ECHO You require the MoonScript Lua compiler ^(moonc.exe^)
ECHO Get it here: http://moonscript.org/#installation
ECHO.
PAUSE
GOTO :EOF
)
IF NOT "%1"=="" (
SET ARG=%1
CALL :Lower ARG
)
ECHO.
IF "%ARG%"=="clean" (
ECHO Cleaning up build...
REM ECHO Deleting wm.lua
REM DEL wm.lua
REM ECHO Deleting modules\bar.lua
REM DEL modules\bar.lua
REM ECHO Deleting modules\layouts.lua
REM DEL modules\layouts.lua
REM ECHO Deleting modules\tile.lua
REM DEL modules\tile.lua
) ELSE (
ECHO Building...
REM MOONC wm.moon
REM MOONC modules\bar.moon
REM MOONC modules\layouts.moon
REM MOONC modules\tile.moon
)
POPD
GOTO :EOF