mingwmake.bat
changeset 3370 44a1f6fdb5c4
parent 3140 6c1b498a4bb8
child 3776 63bd8906ba1a
--- a/mingwmake.bat	Tue Feb 18 03:15:46 2014 +0100
+++ b/mingwmake.bat	Tue Feb 18 03:15:57 2014 +0100
@@ -3,10 +3,14 @@
 @REM type mingwmake, and wait...
 @REM do not edit - automatically generated from ProjectDefinition
 @REM -------
+@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%"
 
 @pushd ..\rules
 @call find_mingw.bat
 @popd
-make.exe -N -f bc.mak %USEMINGW_ARG% %*
+make.exe -N -f bc.mak %DEFINES% %USEMINGW_ARG% %*