Mercurial > dotfiles
annotate install.cmd @ 111:92a93c9a9ad4
Fixed GitHub schemes. Better log templates.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 28 Aug 2012 21:27:13 -0700 |
parents | b96ff0dd0137 |
children | 20c49d51f7e3 |
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 | 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 | 25 echo [ui] >> "%userprofile%\mercurial.ini" |
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" |