mingwmake.bat
branchjv
changeset 3243 292f55bcd8f0
parent 3219 92e64a42ab4e
child 3838 474d8ec95b33
--- a/mingwmake.bat	Tue Apr 30 10:50:53 2013 +0100
+++ b/mingwmake.bat	Wed May 01 09:34:36 2013 +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% %*