annotate install.cmd @ 124:20c49d51f7e3

Added `.gitconfig`.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 05 Mar 2013 12:48:38 -0800
parents b96ff0dd0137
children 2e1f9a40a36a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
1 @echo off
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
2 setlocal
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
3
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
4 set CWD=%~dp0
23
4b35035cb781 Added script to create Windows symlinks.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
5
54
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
6 :: VIM Files
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
7 if exist "%userprofile%\vimfiles" (
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
8 set /P confirm=Will delete existing "%userprofile%\vimfiles". OK with that? Press CTRL-C to abort.
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
9 rmdir /Q /S "%userprofile%\vimfiles"
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
10 )
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
11
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
12 if exist "%userprofile%\_vimrc" (
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
13 set /P confirm=Will delete existing "%userprofile%\_vimrc". OK with that? Press CTRL-C to abort.
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
14 del /Q "%userprofile%\_vimrc"
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
15 )
95
b96ff0dd0137 Fixed the generated vimrc's runtimepath.
Ludovic Chabant <ludovic@chabant.com>
parents: 82
diff changeset
16 echo set runtimepath+=%CWD:\=/%vim > "%userprofile%\_vimrc"
82
6b2c3f14a5c1 Install changes:
Ludovic Chabant <ludovic@chabant.com>
parents: 54
diff changeset
17 echo source %CWD:\=/%vim/vimrc >> "%userprofile%\_vimrc"
23
4b35035cb781 Added script to create Windows symlinks.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
18
54
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
19 :: Mercurial Files
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
20 if exist "%userprofile%\mercurial.ini" (
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
21 set /P confirm=Will delete existing "%userprofile%\mercurial.ini". OK with that? Press CTRL-C to abort.
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
22 del /Q "%userprofile%\mercurial.ini"
8021bd1438f6 Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents: 40
diff changeset
23 )
32
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
24 echo %%include %CWD%hgrc\hgrc > "%userprofile%\mercurial.ini"
82
6b2c3f14a5c1 Install changes:
Ludovic Chabant <ludovic@chabant.com>
parents: 54
diff changeset
25 echo [ui] >> "%userprofile%\mercurial.ini"
6b2c3f14a5c1 Install changes:
Ludovic Chabant <ludovic@chabant.com>
parents: 54
diff changeset
26 echo ignore = %CWD:\=/%/hgrc/hgignore >> "%userprofile%\mercurial.ini"
32
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
27 echo [extensions] >> "%userprofile%\mercurial.ini"
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
28 echo hggit = %CWD:\=/%lib/hg/hg-git/hggit/ >> "%userprofile%\mercurial.ini"
34
c3a77eaa467a Added 'onsub' extension for Mercurial.
Ludovic Chabant <ludovic@chabant.com>
parents: 32
diff changeset
29 echo onsub = %CWD:\=/%lib/hg/onsub/onsub.py >> "%userprofile%\mercurial.ini"
124
20c49d51f7e3 Added `.gitconfig`.
Ludovic Chabant <ludovic@chabant.com>
parents: 95
diff changeset
30
20c49d51f7e3 Added `.gitconfig`.
Ludovic Chabant <ludovic@chabant.com>
parents: 95
diff changeset
31 :: Git Files
20c49d51f7e3 Added `.gitconfig`.
Ludovic Chabant <ludovic@chabant.com>
parents: 95
diff changeset
32 if exist "%userprofile%\.gitconfig" (
20c49d51f7e3 Added `.gitconfig`.
Ludovic Chabant <ludovic@chabant.com>
parents: 95
diff changeset
33 set /P confirm=Will delete existing "%userprofile%\.gitconfig". OK with that? Press CTRL-C to abort.
20c49d51f7e3 Added `.gitconfig`.
Ludovic Chabant <ludovic@chabant.com>
parents: 95
diff changeset
34 del /Q "%userprofile%\.gitconfig"
20c49d51f7e3 Added `.gitconfig`.
Ludovic Chabant <ludovic@chabant.com>
parents: 95
diff changeset
35 )
20c49d51f7e3 Added `.gitconfig`.
Ludovic Chabant <ludovic@chabant.com>
parents: 95
diff changeset
36 copy "%CWD%git\gitconfig" "%userprofile%\.gitconfig"
20c49d51f7e3 Added `.gitconfig`.
Ludovic Chabant <ludovic@chabant.com>
parents: 95
diff changeset
37