diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-01-16 20:44:32 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-01-16 21:14:22 +0000 |
commit | 224cf1c27455f872ddcbd1f4239c41d1ed3b9696 (patch) | |
tree | 5a7f045e0380ff1a279851490b7e6dd532569cbd | |
parent | bb12d44471346ccc458a9edebba3c2238c113955 (diff) |
checksrc.bat: Better detection of Perl installation
-rw-r--r-- | projects/checksrc.bat | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/projects/checksrc.bat b/projects/checksrc.bat index 139914dd8..d81ce7de0 100644 --- a/projects/checksrc.bat +++ b/projects/checksrc.bat @@ -6,7 +6,7 @@ rem * / __| | | | |_) | | rem * | (__| |_| | _ <| |___ rem * \___|\___/|_| \_\_____| rem * -rem * Copyright (C) 2014, Steve Holme, <steve_holme@hotmail.com>. +rem * Copyright (C) 2014 - 2015, Steve Holme, <steve_holme@hotmail.com>. rem * rem * This software is licensed as described in the file COPYING, which rem * you should have received as part of this distribution. The terms @@ -33,8 +33,11 @@ rem *************************************************************************** :prerequisites rem Check we have Perl installed - if not exist "C:\Perl" ( - if not exist "C:\Perl64" goto noperl + echo %PATH% | findstr /I /C:"\Perl" 1>nul + if errorlevel 1 ( + if not exist "%SystemDrive%\Perl" ( + if not exist "%SystemDrive%\Perl64" goto noperl + ) ) :configure |