Commits

Roger Kratz committed 21a0601

install.bat now reinstall/download latest hg contains.

  • Participants
  • Parent commits 0b032da

Comments (0)

Files changed (2)

 
 SET rootdir=%~dp0
 SET rootdir=%rootdir:~0,-1%
+set hgcontainsfolder=%rootdir%\hgcontains\
+
+call uninstall.bat
 
 ::install hg contains
-hg clone https://bitbucket.org/resi/hg-contains hgcontains
+if exist %hgcontainsfolder% (
+	rd %hgcontainsfolder% /s /q
+	echo %hgcontainsfolder% deleted!
+)
+hg clone https://bitbucket.org/resi/hg-contains %hgcontainsfolder%
 
 ::copy config
 copy config.template config.txt
 
 cscript replace.vbs %mercurialCfg% %includeString% ""
 
+if not defined hgcontainsfolder (
+::dont print and wait if called from install.bat
 cls
 echo %mercurialCfg% cleaned!
 echo.
-pause
+pause
+)