compiler/vcmake.bat
changeset 11 6d39860d0fdb
parent 2 2a3e47c13905
--- a/compiler/vcmake.bat	Mon Sep 14 16:27:00 2015 +0100
+++ b/compiler/vcmake.bat	Wed Sep 16 05:29:43 2015 +0100
@@ -10,6 +10,10 @@
     popd
 )
 @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 -DUSEVC=1 %DEFINES% %*