From 626b778c77a236b76c6e2a6b3e9799b36fc7ae5e Mon Sep 17 00:00:00 2001 From: lotodore Date: Fri, 16 May 2008 16:12:20 +0000 Subject: [PATCH] Mingw script should not run if tools are not present. --- docs/win32_build_scripts/pokerth_download_libs.cmd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/win32_build_scripts/pokerth_download_libs.cmd b/docs/win32_build_scripts/pokerth_download_libs.cmd index a89574d1..ea54d2bd 100644 --- a/docs/win32_build_scripts/pokerth_download_libs.cmd +++ b/docs/win32_build_scripts/pokerth_download_libs.cmd @@ -21,6 +21,8 @@ echo test > pokerth123_delete_me.txt if not exist %PKTH_BaseDir%\pokerth123_delete_me.txt goto noWriteAccess del %PKTH_BaseDir%\pokerth123_delete_me.txt if exist %PKTH_BaseDir%\pokerth123_delete_me.txt goto noWriteAccess +if not exist %PKTH_OldDir%\third_party_apps\curl.exe goto noTools +if not exist %PKTH_OldDir%\third_party_apps\7za.exe goto noTools echo Using "%PKTH_BaseDir%" as base directory. echo. @@ -299,5 +301,10 @@ echo Make sure that the base directory exists and is writable. echo Use a FULL PATH without trailing slash for the base directory. goto pkth_end +:noTools +echo Tools are missing. Please download and extract the full package +echo before running this script. +goto pkth_end + :pkth_end cd /d %PKTH_OldDir%