fixing up the zip batch

master
Allen Webster 2017-06-22 20:41:23 -04:00
parent ea6a0996ee
commit 28cc8cf2e3
2 changed files with 5 additions and 2 deletions

View File

@ -361,7 +361,7 @@ buildsuper(char *code_path, char *out_path, char *filename, b32 x86_build){
char *build_script = "buildsuper.bat";
if (x86_build){
prefix_1 = code_path;
prefix_2 = "\\setup_cl_x86.bat & ";
prefix_2 = "\\build_script\\setup_cl_x86.bat & ";
build_script = "buildsuper_x86.bat";
}
systemf("%s%scall \"%s\\%s\" %s", prefix_1, prefix_2, code_path, build_script, filename);

View File

@ -3,4 +3,7 @@
REM Usage: zip <archivename>
REM compresses the current directory into a zip named <archivename>.zip
"C:\Program Files (x86)\7-Zip\7z.exe" a -tzip -y %*
SET ZIP_PATH=C:\Program Files (x86)\7-Zip
IF NOT EXIST "%ZIP_PATH%" (SET ZIP_PATH=C:\Program Files\7-Zip)
IF EXIST "%ZIP_PATH%" ("%ZIP_PATH%\7z.exe" a -tzip -y %*)