Source

dotfiles / install.bat

Full commit
@echo off
rem CAUTION: %USERPROFILE% AND %~dp0 SHOULD BE IN THE SAME FILESYSTEM. (/H)

rem %USERPROFILE%/bin
mklink /H %USERPROFILE%\bin %~dp0\bin

rem Vim
del /Q %USERPROFILE%\_vimrc
mklink /H %USERPROFILE%\_vimrc %~dp0\.vimrc
rmdir /Q %USERPROFILE%\vimfiles
mklink /D %USERPROFILE%\vimfiles %~dp0\.vim

rem Mercurial
del /Q %USERPROFILE%\.hgext
mklink /D %USERPROFILE%\.hgext %~dp0\.hgext
del /Q %USERPROFILE%\.hgrc
mklink /H %USERPROFILE%\.hgrc %~dp0\.hgrc
copy NUL %USERPROFILE%\.hgrc_mac

rem Git
del /Q %USERPROFILE%\.gitconfig
mklink /D %USERPROFILE%\.gitconfig %~dp0\.gitconfig

set PATH=%USERPROFILE%\bin;%PATH%;C:\Python27;C:\Python27\Scripts

echo.
echo * Installing distribute and pip...
python %USERPROFILE%\bin\install_distribute.py
easy_install --upgrade pip

echo.
echo * Installing Mercurial...
sudo pip install --upgrade mercurial

echo.
echo * Installing extensions...
pip install --upgrade hg-git
pip install --upgrade gntp

echo.
echo * Installing virtualenv...
pip install --upgrade virtualenv
pip install --upgrade virtualenvwrapper

echo.
echo * Installing SCons...
pip install --upgrade scons

echo.
echo * Installing Ack...
cpan App::Ack

pause