text stringlengths 0 834k |
|---|
:onError1 |
for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%err10%%%i set err1=%%i |
goto onErrorEnd |
:onError200 |
for %%i in (0 1 2 3 4 5) do if errorlevel 2%%i0 set err10=%%i |
if err10==5 for %%i in (0 1 2 3 4 5) do if errorlevel 25%%i set err1=%%i |
if not err10==5 goto onError1 |
:onErrorEnd |
set ANT_ERROR=%err100%%err10%%err1% |
for %%i in (1 10 100) do set err%%i= |
:end |
rem bug ID 32069: resetting an undefined env variable changes the errorlevel. |
if not ""%_JAVACMD%""=="""" set _JAVACMD= |
if not ""%_ANT_CMD_LINE_ARGS%""=="""" set ANT_CMD_LINE_ARGS= |
if ""%ANT_ERROR%""==""0"" goto mainEnd |
goto omega |
:mainEnd |
rem If there were no errors, we run the post script. |
if ""%OS%""==""Windows_NT"" @endlocal |
if ""%OS%""==""WINNT"" @endlocal |
if ""%HOME%""=="""" goto homeDrivePathPost |
if exist ""%HOME%\antrc_post.bat"" call ""%HOME%\antrc_post.bat"" |
:homeDrivePathPost |
if ""%HOMEDRIVE%%HOMEPATH%""=="""" goto userProfilePost |
if ""%HOMEDRIVE%%HOMEPATH%""==""%HOME%"" goto userProfilePost |
if exist ""%HOMEDRIVE%%HOMEPATH%\antrc_post.bat"" call ""%HOMEDRIVE%%HOMEPATH%\antrc_post.bat"" |
:userProfilePost |
if ""%USERPROFILE%""=="""" goto omega |
if ""%USERPROFILE%""==""%HOME%"" goto omega |
if ""%USERPROFILE%""==""%HOMEDRIVE%%HOMEPATH%"" goto omega |
if exist ""%USERPROFILE%\antrc_post.bat"" call ""%USERPROFILE%\antrc_post.bat"" |
:omega |
exit /b %ANT_ERROR% |
",33.1095890411,212,0.7485864019 |
169,d0191dac3b2903bd8aa177a213b89e38580d366d,59,cmd,Batchfile,src/agent/windowsagent/build.cmd,zyxyoshine/IOStromplus,72559d764cfdf2baa059c925af8e40d06e57cef4,['MIT'],,,,src/agent/windowsagent/build.cmd,zyxyoshine/IOStromplus,72559d764cfdf2baa059c925af8e40d06e57cef4,['MIT'],10.0,2018-05-19T06:00:37.000Z,2018-08-01T10:4... |
170,d01940c62576b0d0f6009e59c8d8a31a3717082b,29,bat,Batchfile,assemble.bat,aluminum210/bseries,342f3e9b6e305052c452bd99ed3350bfcc2efad6,['MIT'],1.0,2019-12-09T09:53:44.000Z,2019-12-09T09:53:44.000Z,assemble.bat,aluminum210/bseries,342f3e9b6e305052c452bd99ed3350bfcc2efad6,['MIT'],37.0,2018-05-07T13:10:16.000Z,2018-06-10... |
171,d019542ae36874babbcef0f8525b3a0b8f0e151c,176,bat,Batchfile,shortcuts/services.bat,JakeTM9/MITusefulBatchFiles,b8ad0f9098dcb0d2b26c380bcefcea953af8ce11,['MIT'],4.0,2017-09-12T19:52:21.000Z,2021-06-20T17:39:29.000Z,shortcuts/services.bat,JakeTM9/MITusefulBatchFiles,b8ad0f9098dcb0d2b26c380bcefcea953af8ce11,['MIT'],2.0... |
if ""%isSetupCalled%"" equ """" ( |
call %BATCHLOCATION%/SetupEnv.bat |
) |
:: read current namespace |
set /p _namespace=<%kubernetes_namespace% |
kubectl get pods -n %_namespace%",19.5555555556,41,0.7386363636 |
172,d01966b3a371ba410f80ecff2f9cbacdce522dc4,1440,bat,Batchfile,oaserver/make.bat,raysonxin/easyoa,0539b67971ed9908a8aa2b3ba21ad1ca1be8c04a,['Apache-2.0'],,,,oaserver/make.bat,raysonxin/easyoa,0539b67971ed9908a8aa2b3ba21ad1ca1be8c04a,['Apache-2.0'],,,,oaserver/make.bat,raysonxin/easyoa,0539b67971ed9908a8aa2b3ba21ad1ca1... |
@rem #""Makefile"" for Windows projects. |
@rem #Copyright (c) http://www.atisafe.com/, 2015. All rights reserved. |
@rem |
SETLOCAL |
@rem ############### |
@rem # PRINT USAGE # |
@rem ############### |
if [%1]==[] goto usage |
@rem ################ |
@rem # SWITCH BLOCK # |
@rem ################ |
@rem # make build |
if /I [%1]==[build] call :build |
@rem # make build |
if /I [%1]==[linux_build] call :linux_build |
@rem # make build |
if /I [%1]==[windows_build] call :windows_build |
@rem # make clean |
if /I [%1]==[clean] call :clean |
goto :eof |
@rem ############# |
@rem # FUNCTIONS # |
@rem ############# |
:build |
for /f ""delims="" %%i in ('go version') do (set go_version=%%i) |
for /f ""delims="" %%i in ('git rev-parse HEAD') do (set git_hash=%%i) |
@go build -o ./lymall.exe ./ |
exit /B %ERRORLEVEL% |
:linux_build |
for /f ""delims="" %%i in ('go version') do (set go_version=%%i) |
for /f ""delims="" %%i in ('git rev-parse HEAD') do (set git_hash=%%i) |
SET CGO_ENABLED=0 |
set GOARCH=amd64 |
set GOOS=linux |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.