--- a/mercurial/mingwmake.bat Thu Dec 06 21:56:30 2012 +0000
+++ b/mercurial/mingwmake.bat Fri Dec 07 16:36:27 2012 -0800
@@ -3,6 +3,10 @@
@REM type mingwmake, and wait...
@REM do not edit - automatically generated from ProjectDefinition
@REM -------
-make.exe -N -f bc.mak -DUSEMINGW=1 %*
+@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 -DUSEMINGW=1 %DEFINES% %*