Wed, 28 Dec 2022 22:28:58 -0500
add shfmt and scdoc stubs
685
691e15efff36
add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents:
527
diff
changeset
|
1 | #!/bin/sh |
691e15efff36
add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents:
527
diff
changeset
|
2 | set -eu |
130
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
3 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
4 | if [ ! -L ~/userprofile ]; then |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
5 | echo "Please link ~/userprofile" |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
6 | fi |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
7 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
8 | USERPROFILE="$(readlink ~/userprofile)" |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
9 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
10 | cd `hg root` |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
11 | |
685
691e15efff36
add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents:
527
diff
changeset
|
12 | mkdir -p ${USERPROFILE}/vimfiles |
130
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
13 | |
685
691e15efff36
add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents:
527
diff
changeset
|
14 | cp -vu .vimrc ${USERPROFILE}/_vimrc |
978 | 15 | cp -vu .gvimrc ${USERPROFILE}/_gvimrc |
130
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
16 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
17 | cp -vuRL -t ${USERPROFILE}/vimfiles .vim/* |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
18 | |
685
691e15efff36
add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents:
527
diff
changeset
|
19 | cp -vuRL -t ${USERPROFILE}/ \ |
691e15efff36
add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents:
527
diff
changeset
|
20 | .lib \ |
691e15efff36
add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents:
527
diff
changeset
|
21 | .ctags \ |
691e15efff36
add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents:
527
diff
changeset
|
22 | .perltidyrc \ |
700 | 23 | .replyrc \ |
24 | .replyrc.pl |