common/mingwmake.bat
changeset 148 4cbb1c88d03b
parent 43 a331d402de2f
child 269 9fe7ec430706
--- a/common/mingwmake.bat	Sat Dec 08 13:02:12 2012 +0000
+++ b/common/mingwmake.bat	Sat Dec 08 13:03:13 2012 +0000
@@ -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% %*