aboutsummaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-06-02 16:54:20 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-06-02 16:54:20 -0400
commitc2a74cc20ebaa9898052ab758821ccfc7c3ee1f4 (patch)
tree9a9d90471dd6241da885950c5b52416bba28619f /build.bat
downloadsober-c2a74cc20ebaa9898052ab758821ccfc7c3ee1f4.tar.gz
sober-c2a74cc20ebaa9898052ab758821ccfc7c3ee1f4.tar.bz2
sober-c2a74cc20ebaa9898052ab758821ccfc7c3ee1f4.zip
Initial commit
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat33
1 files changed, 33 insertions, 0 deletions
diff --git a/build.bat b/build.bat
new file mode 100644
index 0000000..4d68d07
--- /dev/null
+++ b/build.bat
@@ -0,0 +1,33 @@
+
+set deploydir=deploy
+
+rem Create the build directory
+MKDIR %deploydir%
+MKDIR %deploydir%\cgi-bin
+MKDIR %deploydir%\bugs
+MKDIR %deploydir%\captchas
+
+rem And copy the settings in
+COPY config.h src\config.h
+
+rem Compile the CGI scripts
+gcc src\bugcomment.c src\shared.c
+MOVE a.exe %deploydir%\cgi-bin\bugcomment.cgi
+gcc src\bugsdata.c src\shared.c
+MOVE a.exe %deploydir%\cgi-bin\bugsdata.cgi
+gcc src\gencaptcha.c src\shared.c
+MOVE a.exe %deploydir%\cgi-bin\gencaptcha.cgi
+gcc src\newbug.c src\shared.c
+MOVE a.exe %deploydir%\cgi-bin\newbug.cgi
+gcc src\showbug.c src\shared.c
+MOVE a.exe %deploydir%\cgi-bin\showbug.cgi
+
+DEL src\config.h
+
+rem Copy the html, javascript, and css files
+COPY src\*.txt %deploydir%\
+COPY src\*.html %deploydir%\
+COPY src\*.js %deploydir%\
+COPY src\*.css %deploydir%\
+
+pause