mingwmake.bat
branchtext-view-selection-refactoring
changeset 4846 cd2e0b754655
parent 4517 222c9c6ceec6
child 4851 6cebb40eb268
--- a/mingwmake.bat	Fri Aug 30 18:02:56 2013 +0100
+++ b/mingwmake.bat	Fri Aug 30 20:20:43 2013 +0100
@@ -3,8 +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%"
 
-@call ..\rules\find_mingw.bat
-make.exe -N -f bc.mak %USEMINGW_ARG% %*
+@pushd ..\rules
+@call find_mingw.bat
+@popd
+make.exe -N -f bc.mak %DEFINES% %USEMINGW_ARG% %*