--- a/vcmake.bat Thu Oct 30 21:43:54 2014 +0000
+++ b/vcmake.bat Thu Oct 30 22:18:24 2014 +0000
@@ -5,8 +5,16 @@
@REM -------
@if not defined VSINSTALLDIR (
- call ..\..\..\..\stx\rules\vcsetup.bat
+ pushd ..\..\stx\rules
+ call vcsetup.bat
+ popd
)
-make.exe -N -f bc.mak -DUSEVC %*
+@SET DEFINES=
+@REM Kludge got Mercurial, cannot be implemented in Borland make
+@FOR /F "tokens=*" %%i in ('hg root') do SET HGROOT=%%i
+@IF "%HGROOT%" NEQ "" SET DEFINES=%DEFINES% "-DHGROOT=%HGROOT%"
+make.exe -N -f bc.mak -DUSEVC=1 %DEFINES% %*
+
+