mingwmake.bat
changeset 3375 aa3f6481de63
parent 3128 8589055efa45
child 3635 6c42c43bd938
--- a/mingwmake.bat	Fri Sep 19 19:45:56 2014 +0200
+++ b/mingwmake.bat	Fri Sep 19 19:45:59 2014 +0200
@@ -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% %*