diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-02-06 05:03:50 -0800 |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-02-06 05:03:50 -0800 |
commit | d921eee5402d870c4c2e57d9d15e9555037e6ca0 (patch) | |
tree | 885ab1278ecc770f24c89fb58ad8eed505b42bcf /make.bat | |
parent | ea437255710390b67b296e167f2e28bfb7d2e002 (diff) | |
download | psutil-d921eee5402d870c4c2e57d9d15e9555037e6ca0.tar.gz |
make.bat better error handling
Diffstat (limited to 'make.bat')
-rw-r--r-- | make.bat | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -126,18 +126,19 @@ if "%1" == "memtest" ( if "%1" == "build-exes" ( :build-exes - call :clean - C:\Python26\python.exe setup.py build bdist_wininst & if %errorlevel% neq 0 goto :error - C:\Python27\python.exe setup.py build bdist_wininst & if %errorlevel% neq 0 goto :error - C:\Python33\python.exe setup.py build bdist_wininst & if %errorlevel% neq 0 goto :error + C:\Python26\python.exe setup.py build bdist_wininst || goto :error + C:\Python27\python.exe setup.py build bdist_wininst || goto :error + C:\Python33\python.exe setup.py build bdist_wininst || goto :error + echo OK goto :eof ) if "%1" == "upload-exes" ( :upload-exes - C:\Python26\python.exe setup.py bdist_wininst upload & if %errorlevel% neq 0 goto :error - C:\Python27\python.exe setup.py bdist_wininst upload & if %errorlevel% neq 0 goto :error - C:\Python33\python.exe setup.py bdist_wininst upload & if %errorlevel% neq 0 goto :error + C:\Python26\python.exe setup.py bdist_wininst upload || goto :error + C:\Python27\python.exe setup.py bdist_wininst upload || goto :error + C:\Python33\python.exe setup.py bdist_wininst upload || goto :error + echo OK goto :eof ) @@ -145,4 +146,6 @@ goto :help :error echo last command returned an error; exiting + echo %errorlevel% exit /b %errorlevel% + goto :eof |