|
1 #!/bin/sh |
|
2 set -eu |
|
3 |
|
4 if [ ! -L ~/userprofile ]; then |
|
5 echo "Please link ~/userprofile" |
|
6 fi |
|
7 |
|
8 USERPROFILE="$(readlink ~/userprofile)" |
|
9 |
|
10 cd `hg root` |
|
11 |
|
12 mkdir -p ${USERPROFILE}/vimfiles |
|
13 |
|
14 cp -vu .vimrc ${USERPROFILE}/_vimrc |
|
15 |
|
16 cp -vuRL -t ${USERPROFILE}/vimfiles .vim/* |
|
17 |
|
18 cp -vuRL -t ${USERPROFILE}/ \ |
|
19 .lib \ |
|
20 .ctags \ |
|
21 .perltidyrc \ |
|
22 .replyrc |
|
23 |
|
24 mkdir -p ${USERPROFILE}/{css,js} |
|
25 cp -vuRL -t ${USERPROFILE}/css .css/* |
|
26 cp -vuRL -t ${USERPROFILE}/js .js/* |
|
27 |
|
28 cat <<ENDINSTR |
|
29 # rebuilding vimproc dll on babun for w32 gvim: |
|
30 # $ pact install mingw-gcc-core |
|
31 # $ make -f make_mingw32.mak CC=i686-pc-mingw32-gcc |
|
32 |
|
33 # for w64 gvim: |
|
34 # $ pact install mingw64-x86_64-gcc-core |
|
35 # $ make -f make_mingw64.mak CC=x86_64-w64-mingw32-gcc |
|
36 ENDINSTR |