This used to work. However, when I recreated by source tree anew from the VCS, it stopped working. The failure appears to be that it cannot find the shell script. (Both the batch file and the shell script have the executable flag set.) Adding debug output to the batch file shows that it is finding the shell script, but it still reports "file not found" when trying to execute it. (I have checked that the path has exactly the same case as the command.)
Code: Select all
@echo off
REM SHELL is defined under Wine, but not under Windows
if not "%SHELL%"=="" (
echo "Linux"
if exist ../utilities/h86crc/bin/javacrc.sh (
echo "javacrc.sh exists"
../utilities/h86crc/bin/javacrc.sh %1 %2 %3 %4
) else (
echo "javacrc.sh not found"
)
) else (
echo "Windows"
java %1 %2 %3 %4
)
User command #1: ..\utilities\h86crc\bin\javacrc.bat -jar ..\utilities\h86crc\bin\H86CRC.jar -m:1024 H:\projects\atlasxml\AtlasMV\Bin\AtlasMV_NRIM01.H86
"Linux"
"javacrc.sh exists"
File not found
The first line of the shell script is an echo command and this does not appear.
Any help in resolving this would be very much appreciated.
Thanks.