Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[Win32] Add error checking in .bat files #2385

Closed
wants to merge 2 commits into from

2 participants

@Karlson2k
Collaborator

As requested on forum.
After checks were added, a few existing errors were discovered and fixed.

@wsoltys wsoltys was assigned
@wsoltys
Collaborator

Thanks for the contribution. I currently rewrite the build stuff for jenkins and will use that for the user buildsetup too. You're invited to look at it afterwards although I don't think the error handling like this is absolutely needed :)

@wsoltys wsoltys closed this
@Karlson2k
Collaborator

Nice.
Hope any kind of error checking will be implemented in new system. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 276 additions and 274 deletions.
  1. +13 −11 project/BuildDependencies/DownloadBuildDeps.bat
  2. +8 −8 project/BuildDependencies/scripts/1_copy_deps_d.bat
  3. +5 −5 project/BuildDependencies/scripts/PIL_d.bat
  4. +5 −5 project/BuildDependencies/scripts/boost_d.bat
  5. +7 −7 project/BuildDependencies/scripts/dlextract.bat
  6. +5 −5 project/BuildDependencies/scripts/dnss_d.bat
  7. +4 −4 project/BuildDependencies/scripts/doxygen_d.bat
  8. +7 −7 project/BuildDependencies/scripts/fontconfig_d.bat
  9. +5 −5 project/BuildDependencies/scripts/freetype_d.bat
  10. +17 −17 project/BuildDependencies/scripts/get_mingw_env.bat
  11. +9 −9 project/BuildDependencies/scripts/get_msys_env.bat
  12. +5 −5 project/BuildDependencies/scripts/harfbuzz_d.bat
  13. +5 −5 project/BuildDependencies/scripts/lame_enc_d.bat
  14. +5 −5 project/BuildDependencies/scripts/libbluray_d.bat
  15. +5 −5 project/BuildDependencies/scripts/libbzip2_d.bat
  16. +9 −9 project/BuildDependencies/scripts/libcdio_d.bat
  17. +6 −6 project/BuildDependencies/scripts/libcec_d.bat
  18. +6 −6 project/BuildDependencies/scripts/libcurl_d.bat
  19. +7 −7 project/BuildDependencies/scripts/libexpat_d.bat
  20. +7 −7 project/BuildDependencies/scripts/libflac_d.bat
  21. +5 −5 project/BuildDependencies/scripts/libfribidi_d.bat
  22. +6 −6 project/BuildDependencies/scripts/libglew_d.bat
  23. +5 −5 project/BuildDependencies/scripts/libiconv_d.bat
  24. +5 −5 project/BuildDependencies/scripts/libjpeg-turbo_d.bat
  25. +5 −5 project/BuildDependencies/scripts/liblzo_d.bat
  26. +6 −6 project/BuildDependencies/scripts/libmicrohttpd_d.bat
  27. +5 −5 project/BuildDependencies/scripts/libnfs_d.bat
  28. +9 −9 project/BuildDependencies/scripts/liboggvorbis_d.bat
  29. +5 −5 project/BuildDependencies/scripts/libplist_d.bat
  30. +5 −5 project/BuildDependencies/scripts/librtmp_d.bat
  31. +6 −6 project/BuildDependencies/scripts/libsamplerate_d.bat
  32. +9 −9 project/BuildDependencies/scripts/libsdl_d.bat
  33. +5 −5 project/BuildDependencies/scripts/libshairplay_d.bat
  34. +5 −5 project/BuildDependencies/scripts/libsqlite_d.bat
  35. +6 −6 project/BuildDependencies/scripts/libssh_d.bat
  36. +5 −5 project/BuildDependencies/scripts/mysqlclient_d.bat
  37. +19 −19 project/BuildDependencies/scripts/python_d.bat
  38. +4 −4 project/BuildDependencies/scripts/swig_d.bat
  39. +5 −5 project/BuildDependencies/scripts/taglib_d.bat
  40. +5 −5 project/BuildDependencies/scripts/tinyxml_d.bat
  41. +5 −5 project/BuildDependencies/scripts/yajl_d.bat
  42. +6 −6 project/BuildDependencies/scripts/zlib_d.bat
View
24 project/BuildDependencies/DownloadBuildDeps.bat
@@ -7,9 +7,9 @@ SET XBMC_PATH=%CD%\..\..
SET TMP_PATH=%CD%\scripts\tmp
rem can't run rmdir and md back to back. access denied error otherwise.
-IF EXIST lib rmdir lib /S /Q
-IF EXIST include rmdir include /S /Q
-IF EXIST %TMP_PATH% rmdir %TMP_PATH% /S /Q
+IF EXIST lib rmdir lib /S /Q || EXIT /B 6
+IF EXIST include rmdir include /S /Q || EXIT /B 6
+IF EXIST %TMP_PATH% rmdir %TMP_PATH% /S /Q || EXIT /B 6
IF $%1$ == $$ (
SET DL_PATH="%CD%\downloads"
@@ -20,19 +20,21 @@ IF $%1$ == $$ (
SET WGET=%CUR_PATH%\bin\wget
SET ZIP=%CUR_PATH%\..\Win32BuildSetup\tools\7z\7za
-IF NOT EXIST %DL_PATH% md %DL_PATH%
+IF NOT EXIST %DL_PATH% md %DL_PATH% || EXIT /B 3
-md lib
-md include
-md %TMP_PATH%
+md lib || EXIT /B 3
+md include || EXIT /B 3
+md %TMP_PATH% || EXIT /B 3
-cd scripts
+cd scripts || EXIT /B 1
FOR /F "tokens=*" %%S IN ('dir /B "*_d.bat"') DO (
echo running %%S ...
- CALL %%S
+ CALL %%S || ( ECHO Error running %%S & EXIT /B 1 )
)
-cd %CUR_PATH%
+cd %CUR_PATH% || EXIT /B 1
-rmdir %TMP_PATH% /S /Q
+rmdir %TMP_PATH% /S /Q || EXIT /B 6
+
+echo %0 - OK.
View
16 project/BuildDependencies/scripts/1_copy_deps_d.bat
@@ -1,12 +1,12 @@
@ECHO OFF
-IF EXIST "%XBMC_PATH%\system\webserver" rmdir "%XBMC_PATH%\system\webserver" /S /Q
-IF EXIST "%XBMC_PATH%\system\airplay" rmdir "%XBMC_PATH%\system\airplay" /S /Q
+IF EXIST "%XBMC_PATH%\system\webserver" rmdir "%XBMC_PATH%\system\webserver" /S /Q || EXIT /B 6
+IF EXIST "%XBMC_PATH%\system\airplay" rmdir "%XBMC_PATH%\system\airplay" /S /Q || EXIT /B 6
rem create directories
-IF NOT EXIST "%XBMC_PATH%\system\players\paplayer" md "%XBMC_PATH%\system\players\paplayer"
-IF NOT EXIST "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)" md "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)"
-IF NOT EXIST "%XBMC_PATH%\system\webserver" md "%XBMC_PATH%\system\webserver"
-IF NOT EXIST "%XBMC_PATH%\system\airplay" md "%XBMC_PATH%\system\airplay"
-IF NOT EXIST "%XBMC_PATH%\project\Win32BuildSetup\dependencies" md "%XBMC_PATH%\project\Win32BuildSetup\dependencies"
-IF NOT EXIST "%XBMC_PATH%\system\cdrip" md "%XBMC_PATH%\system\cdrip"
+IF NOT EXIST "%XBMC_PATH%\system\players\paplayer" md "%XBMC_PATH%\system\players\paplayer" || EXIT /B 3
+IF NOT EXIST "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)" md "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)" || EXIT /B 3
+IF NOT EXIST "%XBMC_PATH%\system\webserver" md "%XBMC_PATH%\system\webserver" || EXIT /B 3
+IF NOT EXIST "%XBMC_PATH%\system\airplay" md "%XBMC_PATH%\system\airplay" || EXIT /B 3
+IF NOT EXIST "%XBMC_PATH%\project\Win32BuildSetup\dependencies" md "%XBMC_PATH%\project\Win32BuildSetup\dependencies" || EXIT /B 3
+IF NOT EXIST "%XBMC_PATH%\system\cdrip" md "%XBMC_PATH%\system\cdrip" || EXIT /B 3
View
10 project/BuildDependencies/scripts/PIL_d.bat
@@ -4,12 +4,12 @@ SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\PIL_d.txt
SET OUTDIR="%XBMC_PATH%\addons\script.module.pil\lib\PIL"
-CALL dlextract.bat PIL %FILES%
+CALL dlextract.bat PIL %FILES% || EXIT /B 2
-IF EXIST %OUTDIR% rmdir %OUTDIR% /S /Q
+IF EXIST %OUTDIR% rmdir %OUTDIR% /S /Q || EXIT /B 6
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy PLATLIB\PIL %OUTDIR% /E /Q /I /Y
+xcopy PLATLIB\PIL %OUTDIR% /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/boost_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\boost_d.txt
-CALL dlextract.bat boost %FILES%
+CALL dlextract.bat boost %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy boost-1_46_1-xbmc-win32\include\* "%CUR_PATH%\include\" /E /Q /I /Y
-xcopy boost-1_46_1-xbmc-win32\lib\* "%CUR_PATH%\lib\" /E /Q /I /Y
+xcopy boost-1_46_1-xbmc-win32\include\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+xcopy boost-1_46_1-xbmc-win32\lib\* "%CUR_PATH%\lib\" /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
14 project/BuildDependencies/scripts/dlextract.bat
@@ -3,28 +3,28 @@
echo Downloading %1
echo --------------
-cd %DL_PATH%
+cd %DL_PATH% || EXIT /B 1
FOR /F "eol=; tokens=1,2" %%f IN (%2) DO (
echo %%f %%g
IF NOT EXIST %%f (
- %WGET% "%%g/%%f"
+ %WGET% "%%g/%%f" || EXIT /B 10
) ELSE (
echo Already have %%f
)
- copy /b "%%f" "%TMP_PATH%"
+ copy /b "%%f" "%TMP_PATH%" || EXIT /B 5
)
echo Extracting...
echo -------------
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
FOR /F "eol=; tokens=1,2" %%f IN (%2) DO (
- %ZIP% x %%f
+ %ZIP% x %%f || EXIT /B 4
)
-FOR /F "tokens=*" %%f IN ('dir /B "*.tar"') DO (
- %ZIP% x -y %%f
+FOR %%f IN (*.tar) DO (
+ %ZIP% x -y %%f || EXIT /B 4
)
View
10 project/BuildDependencies/scripts/dnss_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\dnssd_d.txt
-CALL dlextract.bat dnssd %FILES%
+CALL dlextract.bat dnssd %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-del dnssd-379.32.1-win32\readme.txt
-xcopy dnssd-379.32.1-win32\* "%XBMC_PATH%\" /E /Q /I /Y
+del dnssd-379.32.1-win32\readme.txt || EXIT /B 6
+xcopy dnssd-379.32.1-win32\* "%XBMC_PATH%\" /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
8 project/BuildDependencies/scripts/doxygen_d.bat
@@ -3,10 +3,10 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\doxygen_d.txt
-CALL dlextract.bat doxygen %FILES%
+CALL dlextract.bat doxygen %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy doxygen-1.8.2-win32\* "%XBMC_PATH%\" /E /Q /I /Y
+xcopy doxygen-1.8.2-win32\* "%XBMC_PATH%\" /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
14 project/BuildDependencies/scripts/fontconfig_d.bat
@@ -3,14 +3,14 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\fontconfig_d.txt
-CALL dlextract.bat fontconfig %FILES%
+CALL dlextract.bat fontconfig %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy include\fontconfig "%CUR_PATH%\include\fontconfig" /E /Q /I /Y
-copy lib\fontconfig.lib "%CUR_PATH%\lib\" /Y
+xcopy include\fontconfig "%CUR_PATH%\include\fontconfig" /E /Q /I /Y || EXIT /B 5
+copy lib\fontconfig.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
rem libfontconfig-1.dll requires libexpat-1.dll which is copied by libexpat_d.bat
-copy bin\libfontconfig-1.dll "%XBMC_PATH%\system\players\dvdplayer\"
-copy freetype-2.4.6-1-win32\bin\freetype6.dll "%XBMC_PATH%\system\players\dvdplayer\"
+copy bin\libfontconfig-1.dll "%XBMC_PATH%\system\players\dvdplayer\" || EXIT /B 5
+copy freetype-2.4.6-1-win32\bin\freetype6.dll "%XBMC_PATH%\system\players\dvdplayer\" || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/freetype_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\freetype_d.txt
-CALL dlextract.bat freetype %FILES%
+CALL dlextract.bat freetype %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy freetype-2.4.6-win32-1\include\* "%CUR_PATH%\include\" /E /Q /I /Y
-copy freetype-2.4.6-win32-1\lib\freetype246MT.lib "%CUR_PATH%\lib\" /Y
+xcopy freetype-2.4.6-win32-1\include\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+copy freetype-2.4.6-win32-1\lib\freetype246MT.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
34 project/BuildDependencies/scripts/get_mingw_env.bat
@@ -3,27 +3,27 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\get_mingw_env.txt
-IF NOT EXIST %TMP_PATH% md %TMP_PATH%
+IF NOT EXIST %TMP_PATH% md %TMP_PATH% || EXIT /B 3
-CALL dlextract.bat mingw_env %FILES%
+CALL dlextract.bat mingw_env %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-del lib\libexpat.dll.a
-del lib\libexpat.la
-del lib\libz.dll.a
+del lib\libexpat.dll.a || EXIT /B 6
+del lib\libexpat.la || EXIT /B 6
+del lib\libz.dll.a || EXIT /B 6
-xcopy bin\* "%MINGW_INSTALL_PATH%\bin" /E /Q /I /Y
-xcopy doc\* "%MINGW_INSTALL_PATH%\doc" /E /Q /I /Y
-xcopy include\* "%MINGW_INSTALL_PATH%\include" /E /Q /I /Y
-xcopy lib\* "%MINGW_INSTALL_PATH%\lib" /E /Q /I /Y
-xcopy share\* "%MINGW_INSTALL_PATH%\share" /E /Q /I /Y
-xcopy libexec\* "%MINGW_INSTALL_PATH%\libexec" /E /Q /I /Y
-xcopy mingw32\* "%MINGW_INSTALL_PATH%\mingw32" /E /Q /I /Y
-copy yasm-1.2.0-win32.exe "%MINGW_INSTALL_PATH%\bin\yasm.exe" /Y
-copy xasm.exe "%MINGW_INSTALL_PATH%\bin\xasm.exe" /Y
-copy mads.exe "%MINGW_INSTALL_PATH%\bin\mads.exe" /Y
+xcopy bin\* "%MINGW_INSTALL_PATH%\bin" /E /Q /I /Y || EXIT /B 5
+xcopy doc\* "%MINGW_INSTALL_PATH%\doc" /E /Q /I /Y || EXIT /B 5
+xcopy include\* "%MINGW_INSTALL_PATH%\include" /E /Q /I /Y || EXIT /B 5
+xcopy lib\* "%MINGW_INSTALL_PATH%\lib" /E /Q /I /Y || EXIT /B 5
+xcopy share\* "%MINGW_INSTALL_PATH%\share" /E /Q /I /Y || EXIT /B 5
+xcopy libexec\* "%MINGW_INSTALL_PATH%\libexec" /E /Q /I /Y || EXIT /B 5
+xcopy mingw32\* "%MINGW_INSTALL_PATH%\mingw32" /E /Q /I /Y || EXIT /B 5
+copy yasm-1.2.0-win32.exe "%MINGW_INSTALL_PATH%\bin\yasm.exe" /Y || EXIT /B 5
+copy xasm.exe "%MINGW_INSTALL_PATH%\bin\xasm.exe" /Y || EXIT /B 5
+copy mads.exe "%MINGW_INSTALL_PATH%\bin\mads.exe" /Y || EXIT /B 5
rem xcopy curl-7.21.0-devel-mingw32\include\curl "%CUR_PATH%\include\curl" /E /Q /I /Y
rem copy curl-7.21.0-devel-mingw32\bin\*.dll "%XBMC_PATH%\system\" /Y
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
18 project/BuildDependencies/scripts/get_msys_env.bat
@@ -3,16 +3,16 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\get_msys_env.txt
-CALL dlextract.bat msys_env %FILES%
+CALL dlextract.bat msys_env %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy bin\* "%MSYS_INSTALL_PATH%\bin" /E /Q /I /Y
-xcopy lib\* "%MSYS_INSTALL_PATH%\lib" /E /Q /I /Y
-xcopy etc\* "%MSYS_INSTALL_PATH%\etc" /E /Q /I /Y
-xcopy share\* "%MSYS_INSTALL_PATH%\share" /E /Q /I /Y
-copy *.ico "%MSYS_INSTALL_PATH%" /Y
-copy *.bat "%MSYS_INSTALL_PATH%" /Y
-copy coreutils-5.97\bin\pr.exe "%MSYS_INSTALL_PATH%\bin\" /Y
+xcopy bin\* "%MSYS_INSTALL_PATH%\bin" /E /Q /I /Y || EXIT /B 5
+xcopy lib\* "%MSYS_INSTALL_PATH%\lib" /E /Q /I /Y || EXIT /B 5
+xcopy etc\* "%MSYS_INSTALL_PATH%\etc" /E /Q /I /Y || EXIT /B 5
+xcopy share\* "%MSYS_INSTALL_PATH%\share" /E /Q /I /Y || EXIT /B 5
+copy *.ico "%MSYS_INSTALL_PATH%" /Y || EXIT /B 5
+copy *.bat "%MSYS_INSTALL_PATH%" /Y || EXIT /B 5
+copy coreutils-5.97\bin\pr.exe "%MSYS_INSTALL_PATH%\bin\" /Y || EXIT /B 5
cd %LOC_PATH%
View
10 project/BuildDependencies/scripts/harfbuzz_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\harfbuzz_d.txt
-CALL dlextract.bat harfbuzz %FILES%
+CALL dlextract.bat harfbuzz %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy harfbuzz-0.7.0\include\* "%CUR_PATH%\include\" /E /Q /I /Y
-copy harfbuzz-0.7.0\lib\harfbuzz.lib "%CUR_PATH%\lib\" /Y
+xcopy harfbuzz-0.7.0\include\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+copy harfbuzz-0.7.0\lib\harfbuzz.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/lame_enc_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\lame_enc_d.txt
-CALL dlextract.bat lame_enc %FILES%
+CALL dlextract.bat lame_enc %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-del lame_enc-3.99.5-win32\readme.txt
-xcopy lame_enc-3.99.5-win32\* "%XBMC_PATH%\" /E /Q /I /Y
+del lame_enc-3.99.5-win32\readme.txt || EXIT /B 5
+xcopy lame_enc-3.99.5-win32\* "%XBMC_PATH%\" /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/libbluray_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libbluray_d.txt
-CALL dlextract.bat libbluray %FILES%
+CALL dlextract.bat libbluray %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-del libbluray-0.2.3-win32\how_to_build.txt
-xcopy libbluray-0.2.3-win32\* "%XBMC_PATH%\" /E /Q /I /Y
+del libbluray-0.2.3-win32\how_to_build.txt || EXIT /B 5
+xcopy libbluray-0.2.3-win32\* "%XBMC_PATH%\" /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/libbzip2_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libbzip2_d.txt
-CALL dlextract.bat libbzip2 %FILES%
+CALL dlextract.bat libbzip2 %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-copy include\bzlib2.h "%CUR_PATH%\include\" /Y
-copy lib\bzip2.lib "%CUR_PATH%\lib\" /Y
+copy include\bzlib.h "%CUR_PATH%\include\" /Y || EXIT /B 5
+copy lib\bzip2.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
18 project/BuildDependencies/scripts/libcdio_d.bat
@@ -3,17 +3,17 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libcdio_d.txt
-CALL dlextract.bat libcdio %FILES%
+CALL dlextract.bat libcdio %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy libcdio-0.83-win32\include\* "%CUR_PATH%\include\" /E /Q /I /Y
-copy libcdio-0.83-win32\lib\libcdio.dll.lib "%CUR_PATH%\lib\" /Y
-copy libcdio-0.83-win32\bin\libcdio-13.dll "%XBMC_PATH%\project\Win32BuildSetup\dependencies\" /Y
-copy libcdio-0.83-win32\bin\libiconv-2.dll "%XBMC_PATH%\project\Win32BuildSetup\dependencies\" /Y
+xcopy libcdio-0.83-win32\include\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+copy libcdio-0.83-win32\lib\libcdio.dll.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
+copy libcdio-0.83-win32\bin\libcdio-13.dll "%XBMC_PATH%\project\Win32BuildSetup\dependencies\" /Y || EXIT /B 5
+copy libcdio-0.83-win32\bin\libiconv-2.dll "%XBMC_PATH%\project\Win32BuildSetup\dependencies\" /Y || EXIT /B 5
rem for debugging
-copy libcdio-0.83-win32\bin\libcdio-13.dll "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)\" /Y
-copy libcdio-0.83-win32\bin\libiconv-2.dll "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)\" /Y
+copy libcdio-0.83-win32\bin\libcdio-13.dll "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)\" /Y || EXIT /B 5
+copy libcdio-0.83-win32\bin\libiconv-2.dll "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
12 project/BuildDependencies/scripts/libcec_d.bat
@@ -3,13 +3,13 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libcec_d.txt
-CALL dlextract.bat libcec %FILES%
+CALL dlextract.bat libcec %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-mkdir "%CUR_PATH%\include\libcec"
-xcopy libcec\include\* "%CUR_PATH%\include\libcec\." /E /Q /I /Y
+mkdir "%CUR_PATH%\include\libcec" || EXIT /B 3
+xcopy libcec\include\* "%CUR_PATH%\include\libcec\." /E /Q /I /Y || EXIT /B 5
-copy libcec\libcec.dll "%XBMC_PATH%\system\."
+copy libcec\libcec.dll "%XBMC_PATH%\system\." || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
12 project/BuildDependencies/scripts/libcurl_d.bat
@@ -3,15 +3,15 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libcurl_d.txt
-CALL dlextract.bat libcurl %FILES%
+CALL dlextract.bat libcurl %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
rem we are using zlib1.dll from the zlib package
rem I found no reference to zlib1.dll in any curl dll
-del curl-7.21.6-devel-mingw32\bin\zlib1.dll
+del curl-7.21.6-devel-mingw32\bin\zlib1.dll || EXIT /B 6
-xcopy curl-7.21.6-devel-mingw32\include\curl "%CUR_PATH%\include\curl" /E /Q /I /Y
-copy curl-7.21.6-devel-mingw32\bin\*.dll "%XBMC_PATH%\system\" /Y
+xcopy curl-7.21.6-devel-mingw32\include\curl "%CUR_PATH%\include\curl" /E /Q /I /Y || EXIT /B 5
+copy curl-7.21.6-devel-mingw32\bin\*.dll "%XBMC_PATH%\system\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
14 project/BuildDependencies/scripts/libexpat_d.bat
@@ -3,14 +3,14 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libexpat_d.txt
-CALL dlextract.bat libexpat %FILES%
+CALL dlextract.bat libexpat %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-copy include\* "%CUR_PATH%\include\" /Y
-copy lib\expat.lib "%CUR_PATH%\lib\libexpat.lib" /Y
-copy bin\libexpat-1.dll "%XBMC_PATH%\system\libexpat.dll"
+copy include\* "%CUR_PATH%\include\" /Y || EXIT /B 5
+copy lib\expat.lib "%CUR_PATH%\lib\libexpat.lib" /Y || EXIT /B
+copy bin\libexpat-1.dll "%XBMC_PATH%\system\libexpat.dll" || EXIT /B 5
rem libexpat-1.dll for libfontconfig-1.dll which is needed for libass.dll
-copy bin\libexpat-1.dll "%XBMC_PATH%\system\players\dvdplayer\"
+copy bin\libexpat-1.dll "%XBMC_PATH%\system\players\dvdplayer\" || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
14 project/BuildDependencies/scripts/libflac_d.bat
@@ -3,14 +3,14 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libflac_d.txt
-CALL dlextract.bat libflac %FILES%
+CALL dlextract.bat libflac %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy include\FLAC "%CUR_PATH%\include\FLAC" /E /Q /I /Y
-copy lib\libFLAC.dll "%XBMC_PATH%\system\players\paplayer\" /Y
+xcopy include\FLAC "%CUR_PATH%\include\FLAC" /E /Q /I /Y || EXIT /B 5
+copy lib\libFLAC.dll "%XBMC_PATH%\system\players\paplayer\" /Y || EXIT /B 5
-IF EXIST "include\FLAC++" rmdir "include\FLAC++" /S /Q
-IF EXIST "include\ogg" rmdir "include\ogg" /S /Q
+IF EXIST "include\FLAC++" rmdir "include\FLAC++" /S /Q || EXIT /B 6
+IF EXIST "include\ogg" rmdir "include\ogg" /S /Q || EXIT /B 6
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/libfribidi_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libfribidi_d.txt
-CALL dlextract.bat libfribidi %FILES%
+CALL dlextract.bat libfribidi %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy fribidi-0.19.2-lib\include\fribidi "%CUR_PATH%\include\fribidi" /E /Q /I /Y
-copy fribidi-0.19.2-lib\lib\libfribidi.lib "%CUR_PATH%\lib\" /Y
+xcopy fribidi-0.19.2-lib\include\fribidi "%CUR_PATH%\include\fribidi" /E /Q /I /Y || EXIT /B 5
+copy fribidi-0.19.2-lib\lib\libfribidi.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
12 project/BuildDependencies/scripts/libglew_d.bat
@@ -3,12 +3,12 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libglew_d.txt
-CALL dlextract.bat libglew %FILES%
+CALL dlextract.bat libglew %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy glew\include\* "%CUR_PATH%\include\" /E /Q /I /Y
-copy glew\lib\*.lib "%CUR_PATH%\lib\" /Y
-copy glew\bin\glew32.dll "%XBMC_PATH%\project\Win32BuildSetup\dependencies\glew32.dll"
+xcopy glew\include\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+copy glew\lib\*.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
+copy glew\bin\glew32.dll "%XBMC_PATH%\project\Win32BuildSetup\dependencies\glew32.dll" || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/libiconv_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libiconv_d.txt
-CALL dlextract.bat libiconv %FILES%
+CALL dlextract.bat libiconv %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy libiconv-1.13.1-win32\include\* "%CUR_PATH%\include\" /E /Q /I /Y
-copy libiconv-1.13.1-win32\lib\libiconv.lib "%CUR_PATH%\lib\" /Y
+xcopy libiconv-1.13.1-win32\include\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+copy libiconv-1.13.1-win32\lib\libiconv.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/libjpeg-turbo_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libjpeg-turbo_d.txt
-CALL dlextract.bat libjpeg-turbo %FILES%
+CALL dlextract.bat libjpeg-turbo %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy libjpeg-turbo-1.2.0-win32\project\BuildDependencies\include\* "%CUR_PATH%\include\" /E /Q /I /Y
-xcopy libjpeg-turbo-1.2.0-win32\project\BuildDependencies\lib\*.lib "%CUR_PATH%\lib\" /E /Q /I /Y
+xcopy libjpeg-turbo-1.2.0-win32\project\BuildDependencies\include\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+xcopy libjpeg-turbo-1.2.0-win32\project\BuildDependencies\lib\*.lib "%CUR_PATH%\lib\" /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/liblzo_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\liblzo_d.txt
-CALL dlextract.bat liblzo %FILES%
+CALL dlextract.bat liblzo %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy lzo-2.04_win32\include\lzo "%CUR_PATH%\include\lzo" /E /Q /I /Y
-copy lzo-2.04_win32\lib\liblzo2.lib "%CUR_PATH%\lib\" /Y
+xcopy lzo-2.04_win32\include\lzo "%CUR_PATH%\include\lzo" /E /Q /I /Y || EXIT /B 5
+copy lzo-2.04_win32\lib\liblzo2.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
12 project/BuildDependencies/scripts/libmicrohttpd_d.bat
@@ -3,12 +3,12 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libmicrohttpd_d.txt
-CALL dlextract.bat libmicrohttpd %FILES%
+CALL dlextract.bat libmicrohttpd %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy libmicrohttpd-0.4.5-win32\include\* "%CUR_PATH%\include" /E /Q /I /Y
-xcopy libmicrohttpd-0.4.5-win32\bin\*.dll "%XBMC_PATH%\system\webserver" /E /Q /I /Y
-copy libmicrohttpd-0.4.5-win32\lib\libmicrohttpd.dll.lib "%CUR_PATH%\lib\" /Y
+xcopy libmicrohttpd-0.4.5-win32\include\* "%CUR_PATH%\include" /E /Q /I /Y || EXIT /B 5
+xcopy libmicrohttpd-0.4.5-win32\bin\*.dll "%XBMC_PATH%\system\webserver" /E /Q /I /Y || EXIT /B 5
+copy libmicrohttpd-0.4.5-win32\lib\libmicrohttpd.dll.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/libnfs_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libnfs_d.txt
-CALL dlextract.bat libnfs %FILES%
+CALL dlextract.bat libnfs %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy libnfs-1.3.0-win32\project\BuildDependencies\include\* "%CUR_PATH%\include\" /E /Q /I /Y
-copy libnfs-1.3.0-win32\system\libnfs.dll "%XBMC_PATH%\system\" /Y
+xcopy libnfs-1.3.0-win32\project\BuildDependencies\include\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+copy libnfs-1.3.0-win32\system\libnfs.dll "%XBMC_PATH%\system\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
18 project/BuildDependencies/scripts/liboggvorbis_d.bat
@@ -3,15 +3,15 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\liboggvorbis_d.txt
-CALL dlextract.bat liboggvorbis %FILES%
+CALL dlextract.bat liboggvorbis %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy include\ogg "%CUR_PATH%\include\ogg" /E /Q /I /Y
-xcopy include\vorbis "%CUR_PATH%\include\vorbis" /E /Q /I /Y
-copy bin\ogg.dll "%XBMC_PATH%\system\cdrip\" /Y
-copy bin\vorbis.dll "%XBMC_PATH%\system\cdrip\" /Y
-copy bin\vorbisenc.dll "%XBMC_PATH%\system\cdrip\" /Y
-copy bin\vorbisfile.dll "%XBMC_PATH%\system\players\paplayer\" /Y
+xcopy include\ogg "%CUR_PATH%\include\ogg" /E /Q /I /Y || EXIT /B 5
+xcopy include\vorbis "%CUR_PATH%\include\vorbis" /E /Q /I /Y || EXIT /B 5
+copy bin\ogg.dll "%XBMC_PATH%\system\cdrip\" /Y || EXIT /B 5
+copy bin\vorbis.dll "%XBMC_PATH%\system\cdrip\" /Y || EXIT /B 5
+copy bin\vorbisenc.dll "%XBMC_PATH%\system\cdrip\" /Y || EXIT /B 5
+copy bin\vorbisfile.dll "%XBMC_PATH%\system\players\paplayer\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/libplist_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libplist_d.txt
-CALL dlextract.bat libplist %FILES%
+CALL dlextract.bat libplist %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy libplist-1.7-win32-2\include\* "%CUR_PATH%\include\" /E /Q /I /Y
-xcopy libplist-1.7-win32-2\bin\* "%XBMC_PATH%\system\" /E /Q /I /Y
+xcopy libplist-1.7-win32-2\include\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+xcopy libplist-1.7-win32-2\bin\* "%XBMC_PATH%\system\" /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/librtmp_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\librtmp_d.txt
-CALL dlextract.bat librtmp %FILES%
+CALL dlextract.bat librtmp %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy librtmp-20110723-git-b627335-win32\include\*.h "%CUR_PATH%\include\librtmp\" /E /Q /I /Y
-xcopy librtmp-20110723-git-b627335-win32\lib\*.dll "%XBMC_PATH%\system\players\dvdplayer\" /E /Q /I /Y
+xcopy librtmp-20110723-git-b627335-win32\include\*.h "%CUR_PATH%\include\librtmp\" /E /Q /I /Y || EXIT /B 5
+xcopy librtmp-20110723-git-b627335-win32\lib\*.dll "%XBMC_PATH%\system\players\dvdplayer\" /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
12 project/BuildDependencies/scripts/libsamplerate_d.bat
@@ -3,12 +3,12 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libsamplerate_d.txt
-CALL dlextract.bat libsamplerate %FILES%
+CALL dlextract.bat libsamplerate %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-copy include\samplerate.h "%CUR_PATH%\include" /Y
-copy lib\libsamplerate-0.lib "%CUR_PATH%\lib\" /Y
-copy bin\libsamplerate-0.dll "%XBMC_PATH%\system\" /Y
+copy include\samplerate.h "%CUR_PATH%\include" /Y || EXIT /B 5
+copy lib\libsamplerate-0.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
+copy bin\libsamplerate-0.dll "%XBMC_PATH%\system\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
18 project/BuildDependencies/scripts/libsdl_d.bat
@@ -3,17 +3,17 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libsdl_d.txt
-CALL dlextract.bat libsdl %FILES%
+CALL dlextract.bat libsdl %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy SDL-1.2.14\include\* "%CUR_PATH%\include\SDL\" /E /Q /I /Y
-copy SDL-1.2.14\lib\SDL.lib "%CUR_PATH%\lib\SDL.lib" /Y
+xcopy SDL-1.2.14\include\* "%CUR_PATH%\include\SDL\" /E /Q /I /Y || EXIT /B 5
+copy SDL-1.2.14\lib\SDL.lib "%CUR_PATH%\lib\SDL.lib" /Y || EXIT /B 5
-copy SDL-1.2.14\lib\SDL.dll "%XBMC_PATH%\tools\TexturePacker\SDL.dll"
-copy SDL_image-1.2.10\include\SDL_image.h "%CUR_PATH%\include\SDL\"
-copy SDL_image-1.2.10\lib\*.dll "%XBMC_PATH%\tools\TexturePacker\"
-copy SDL_image-1.2.10\lib\SDL_image.lib "%CUR_PATH%\lib\SDL_image.lib" /Y
+copy SDL-1.2.14\lib\SDL.dll "%XBMC_PATH%\tools\TexturePacker\SDL.dll" || EXIT /B 5
+copy SDL_image-1.2.10\include\SDL_image.h "%CUR_PATH%\include\SDL\" || EXIT /B 5
+copy SDL_image-1.2.10\lib\*.dll "%XBMC_PATH%\tools\TexturePacker\" || EXIT /B 5
+copy SDL_image-1.2.10\lib\SDL_image.lib "%CUR_PATH%\lib\SDL_image.lib" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/libshairplay_d.bat
@@ -3,12 +3,12 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libshairplay_d.txt
-CALL dlextract.bat libshairplay %FILES%
+CALL dlextract.bat libshairplay %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-echo readme.txt > shairplay_exclude.txt
+echo readme.txt > shairplay_exclude.txt || EXIT /B 12
-xcopy libshairplay-495f02-win32\* "%XBMC_PATH%\" /E /Q /I /Y /EXCLUDE:shairplay_exclude.txt
+xcopy libshairplay-495f02-win32\* "%XBMC_PATH%\" /E /Q /I /Y /EXCLUDE:shairplay_exclude.txt || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/libsqlite_d.bat
@@ -3,12 +3,12 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libsqlite_d.txt
-CALL dlextract.bat libsqlite %FILES%
+CALL dlextract.bat libsqlite %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-echo readme.txt > sqlite_exclude.txt
+echo readme.txt > sqlite_exclude.txt || EXIT /B 12
-xcopy sqlite-3.7.12.1-win32\* "%XBMC_PATH%\" /E /Q /I /Y /EXCLUDE:sqlite_exclude.txt
+xcopy sqlite-3.7.12.1-win32\* "%XBMC_PATH%\" /E /Q /I /Y /EXCLUDE:sqlite_exclude.txt || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
12 project/BuildDependencies/scripts/libssh_d.bat
@@ -3,12 +3,12 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\libssh_d.txt
-CALL dlextract.bat libssh %FILES%
+CALL dlextract.bat libssh %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy include\libssh "%CUR_PATH%\include\libssh" /E /Q /I /Y
-copy lib\ssh.lib "%CUR_PATH%\lib\" /Y
-copy bin\ssh.dll "%XBMC_PATH%\system\" /Y
+xcopy include\libssh "%CUR_PATH%\include\libssh" /E /Q /I /Y || EXIT /B 5
+copy lib\ssh.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
+copy bin\ssh.dll "%XBMC_PATH%\system\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/mysqlclient_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\mysqlclient_d.txt
-CALL dlextract.bat mysqlclient %FILES%
+CALL dlextract.bat mysqlclient %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy mysql-connector-c-noinstall-6.0.2-win32\include\* "%CUR_PATH%\include\mysql\" /E /Q /I /Y
-copy mysql-connector-c-noinstall-6.0.2-win32\lib\mysqlclient.lib "%CUR_PATH%\lib\" /Y
+xcopy mysql-connector-c-noinstall-6.0.2-win32\include\* "%CUR_PATH%\include\mysql\" /E /Q /I /Y || EXIT /B 5
+copy mysql-connector-c-noinstall-6.0.2-win32\lib\mysqlclient.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
38 project/BuildDependencies/scripts/python_d.bat
@@ -3,33 +3,33 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\python_d.txt
-CALL dlextract.bat python %FILES%
+CALL dlextract.bat python %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
set DEBUG=false
-echo \test\ > py_exclude.txt
+echo \test\ > py_exclude.txt || EXIT /B 12
if "%DEBUG%" == "false" (
- echo _d.dll >> py_exclude.txt
- echo _d.pyd >> py_exclude.txt
- echo _d.lib >> py_exclude.txt
- echo .pdb >> py_exclude.txt
- echo tcl85g. >> py_exclude.txt
- echo tclpip85g. >> py_exclude.txt
- echo tk85g. >> py_exclude.txt
+ echo _d.dll >> py_exclude.txt || EXIT /B 12
+ echo _d.pyd >> py_exclude.txt || EXIT /B 12
+ echo _d.lib >> py_exclude.txt || EXIT /B 12
+ echo .pdb >> py_exclude.txt || EXIT /B 12
+ echo tcl85g. >> py_exclude.txt || EXIT /B 12
+ echo tclpip85g. >> py_exclude.txt || EXIT /B 12
+ echo tk85g. >> py_exclude.txt || EXIT /B 12
)
-xcopy python2.6.6\include\* "%CUR_PATH%\include\python" /E /Q /I /Y /EXCLUDE:py_exclude.txt
-xcopy python2.6.6\python\DLLs "%XBMC_PATH%\system\python\DLLs" /E /Q /I /Y /EXCLUDE:py_exclude.txt
-xcopy python2.6.6\python\Lib "%XBMC_PATH%\system\python\Lib" /E /Q /I /Y /EXCLUDE:py_exclude.txt
-xcopy python2.6.6\python26.dll "%XBMC_PATH%\project\Win32BuildSetup\dependencies\" /Q /I /Y /EXCLUDE:py_exclude.txt
-xcopy python2.6.6\libs\*.lib "%CUR_PATH%\lib\" /E /Q /I /Y /EXCLUDE:py_exclude.txt
-xcopy python2.6.6\libs\*.pdb "%CUR_PATH%\lib\" /E /Q /I /Y /EXCLUDE:py_exclude.txt
+xcopy python2.6.6\include\* "%CUR_PATH%\include\python" /E /Q /I /Y /EXCLUDE:py_exclude.txt || EXIT /B 5
+xcopy python2.6.6\python\DLLs "%XBMC_PATH%\system\python\DLLs" /E /Q /I /Y /EXCLUDE:py_exclude.txt || EXIT /B 5
+xcopy python2.6.6\python\Lib "%XBMC_PATH%\system\python\Lib" /E /Q /I /Y /EXCLUDE:py_exclude.txt || EXIT /B 5
+xcopy python2.6.6\python26.dll "%XBMC_PATH%\project\Win32BuildSetup\dependencies\" /Q /I /Y /EXCLUDE:py_exclude.txt || EXIT /B 5
+xcopy python2.6.6\libs\*.lib "%CUR_PATH%\lib\" /E /Q /I /Y /EXCLUDE:py_exclude.txt || EXIT /B 5
+xcopy python2.6.6\libs\*.pdb "%CUR_PATH%\lib\" /E /Q /I /Y /EXCLUDE:py_exclude.txt || EXIT /B 5
rem for debugging
-xcopy python2.6.6\python26.dll "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)\" /Q /I /Y /EXCLUDE:py_exclude.txt
-xcopy python2.6.6\python26_d.dll "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)\" /Q /I /Y /EXCLUDE:py_exclude.txt
+xcopy python2.6.6\python26.dll "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)\" /Q /I /Y /EXCLUDE:py_exclude.txt || EXIT /B 5
+xcopy python2.6.6\python26_d.dll "%XBMC_PATH%\project\VS2010Express\XBMC\Debug (DirectX)\" /Q /I /Y /EXCLUDE:py_exclude.txt || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
8 project/BuildDependencies/scripts/swig_d.bat
@@ -3,10 +3,10 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\swig_d.txt
-CALL dlextract.bat swig %FILES%
+CALL dlextract.bat swig %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy swig-2.0.7-win32\* "%CUR_PATH%\bin\swig" /E /Q /I /Y
+xcopy swig-2.0.7-win32\* "%CUR_PATH%\bin\swig" /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/taglib_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\taglib_d.txt
-CALL dlextract.bat taglib %FILES%
+CALL dlextract.bat taglib %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-del taglib-1.8-win32\readme.txt
-xcopy taglib-1.8-win32\* "%XBMC_PATH%\" /E /Q /I /Y
+del taglib-1.8-win32\readme.txt || EXIT /B 6
+xcopy taglib-1.8-win32\* "%XBMC_PATH%\" /E /Q /I /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/tinyxml_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\tinyxml_d.txt
-CALL dlextract.bat tinyxml %FILES%
+CALL dlextract.bat tinyxml %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy tinyxml-2.6.2-win32\include\tinyxml\* "%CUR_PATH%\include\" /E /Q /I /Y
-copy tinyxml-2.6.2-win32\lib\* "%CUR_PATH%\lib\" /Y
+xcopy tinyxml-2.6.2-win32\include\tinyxml\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+copy tinyxml-2.6.2-win32\lib\* "%CUR_PATH%\lib\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
10 project/BuildDependencies/scripts/yajl_d.bat
@@ -3,11 +3,11 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\yajl_d.txt
-CALL dlextract.bat yajl %FILES%
+CALL dlextract.bat yajl %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy yajl_2.0.1_win32-lib\include\yajl "%CUR_PATH%\include\yajl" /E /Q /I /Y
-copy yajl_2.0.1_win32-lib\lib\yajl.lib "%CUR_PATH%\lib\" /Y
+xcopy yajl_2.0.1_win32-lib\include\yajl "%CUR_PATH%\include\yajl" /E /Q /I /Y || EXIT /B 5
+copy yajl_2.0.1_win32-lib\lib\yajl.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
View
12 project/BuildDependencies/scripts/zlib_d.bat
@@ -3,12 +3,12 @@
SET LOC_PATH=%CD%
SET FILES=%LOC_PATH%\zlib_d.txt
-CALL dlextract.bat zlib %FILES%
+CALL dlextract.bat zlib %FILES% || EXIT /B 2
-cd %TMP_PATH%
+cd %TMP_PATH% || EXIT /B 1
-xcopy include\* "%CUR_PATH%\include\" /E /Q /I /Y
-copy lib\zlib.lib "%CUR_PATH%\lib\" /Y
-copy bin\zlib1.dll "%XBMC_PATH%\system\" /Y
+xcopy include\* "%CUR_PATH%\include\" /E /Q /I /Y || EXIT /B 5
+copy lib\zlib.lib "%CUR_PATH%\lib\" /Y || EXIT /B 5
+copy bin\zlib1.dll "%XBMC_PATH%\system\" /Y || EXIT /B 5
-cd %LOC_PATH%
+cd %LOC_PATH% || EXIT /B 1
Something went wrong with that request. Please try again.