forked from vinhui/irc-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
46 lines (30 loc) · 921 Bytes
/
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
@echo off
:: Checks if there's already a ~\bin\ directory.
if exist "%cd%\bin\" (
if exist "%cd%\bin\log\" (
for %%f in (bin\log\*.txt) do (
xcopy /s /y %%f src\log\ > nul
)
)
if exist "%cd%\bin\data\" (
for %%f in (bin\data\*.txt) do (
xcopy /s /y %%f src\data\ > nul
)
)
rd "%cd%\bin\" /s /q
)
:: Creates the bin directory hierarchy.
mkdir bin
mkdir bin\log
mkdir bin\login
:: Compiles the base executable with the default parser.
csc /out:bin\base.exe "src\base\*.cs" "src\module\*.cs" "src\system\*.cs"
:: Moves all login files to the ~\bin\login\ directory.
for %%f in (src\login\*.txt) do (
xcopy /s /y %%f bin\login\ > nul
)
:: Moves all login files to the ~\bin\login\ directory.
for %%f in (src\data\*.txt) do (
xcopy /s /y %%f bin\data\ > nul
)
pause