- Jun
- 223
- 0
Consider the following snippet (copy to a file, say x.btm, and execute it as x):
setlocal
set make=z:\bin\gnu\bin\make.exe
gosub recompile gvimext/gvimext.dll
quit
endlocal
:recompile [prog params]
echo cd %@regexsub[1,(.*)/(.*),%prog%]
echo %make% -q -f make_ming.mak %@regexsub[2,(.*)/(.*),%prog%] %params%
return
In 16 the (correct) output is:
cd gvimext
z:\bin\gnu\bin\make.exe -q -f make_ming.mak gvimext.dll
In 17 I get:
cd
z:\bin\gnu\bin\make.exe -q -f make_ming.mak
setlocal
set make=z:\bin\gnu\bin\make.exe
gosub recompile gvimext/gvimext.dll
quit
endlocal
:recompile [prog params]
echo cd %@regexsub[1,(.*)/(.*),%prog%]
echo %make% -q -f make_ming.mak %@regexsub[2,(.*)/(.*),%prog%] %params%
return
In 16 the (correct) output is:
cd gvimext
z:\bin\gnu\bin\make.exe -q -f make_ming.mak gvimext.dll
In 17 I get:
cd
z:\bin\gnu\bin\make.exe -q -f make_ming.mak