diff --git a/make.cmd b/make.cmd new file mode 100644 index 0000000..a921507 --- /dev/null +++ b/make.cmd @@ -0,0 +1,23 @@ +@echo off +setlocal +call :"%1" +endlocal +exit /b + +:"" +:"all" + go build + exit /b + +:"package" + set /P "VERSION=Version ? (x.y.z) " + for %%I in (linux windows.exe) do ( + set "GOOS=%%~nI" + @for %%J in (386 amd64) do @( + set "GOARCH=%%J" + go build + zip xnhttpd-%VERSION%-%%~nI-%%J.zip xnhttpd%%~xI + ) + ) + echo off + exit /b