diff install.cmd @ 32:d07ca3d7f36c

Updated Windows scripts
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 22 Nov 2011 11:19:41 -0800
parents 5db6b52ebf51
children c3a77eaa467a
line wrap: on
line diff
--- a/install.cmd	Mon Nov 21 21:32:27 2011 -0800
+++ b/install.cmd	Tue Nov 22 11:19:41 2011 -0800
@@ -1,6 +1,11 @@
-rem @echo off
+@echo off
+setlocal
+
+set CWD=%~dp0
 
-mklink /D "%userprofile%\vimfiles" "%~dp0\vim"
-mklink "%userprofile%\_vimrc" "%~dp0\vim\vimrc"
-mklink "%userprofile%\mercurial.ini" "%~dp0\hgrc\hgrc"
+mklink /D "%userprofile%\vimfiles"	"%CWD%vim"
+mklink    "%userprofile%\_vimrc"	"%CWD%vim\vimrc"
 
+echo %%include %CWD%hgrc\hgrc > "%userprofile%\mercurial.ini"
+echo [extensions] >> "%userprofile%\mercurial.ini"
+echo hggit = %CWD:\=/%lib/hg/hg-git/hggit/ >> "%userprofile%\mercurial.ini"