From c2a74cc20ebaa9898052ab758821ccfc7c3ee1f4 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Thu, 2 Jun 2016 16:54:20 -0400 Subject: Initial commit --- build.bat | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 build.bat (limited to 'build.bat') 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 -- cgit v1.2.3-70-g09d2