Mercurial > ec-dotfiles
annotate update-vendor @ 702:48b0cfae98be
Update email in license
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 31 Oct 2022 20:42:42 +0900 |
parents | 17cacf387f7c |
children | 1e0f578f6752 |
rev | line source |
---|---|
508
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
1 #!/bin/sh |
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
2 |
572 | 3 set -u |
4 set -e | |
5 | |
6 | |
578
184635b813e1
Whoops, has been using wrong syntax
nanaya <me@myconan.net>
parents:
572
diff
changeset
|
7 if command -v wget > /dev/null 2>&1; then : |
184635b813e1
Whoops, has been using wrong syntax
nanaya <me@myconan.net>
parents:
572
diff
changeset
|
8 else |
508
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
9 echo wget is required |
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
10 exit 1 |
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
11 fi |
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
12 |
572 | 13 |
508
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
14 _get() { |
688 | 15 ( |
16 if [ -n "${2:-}" ]; then | |
17 mkdir -p "$2" && cd "$2" | |
18 fi | |
19 wget -nv "$1" | |
20 ) | |
508
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
21 } |
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
22 |
572 | 23 |
24 ( | |
25 cd "$(dirname "$0")/vendor/vim-autoload" | |
26 | |
688 | 27 rm -f ./*.vim ./*/*.vim |
572 | 28 _get "https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim" |
29 ) | |
30 | |
508
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
31 |
572 | 32 ( |
33 cd "$(dirname "$0")/vendor/vim-syntax" | |
34 | |
688 | 35 rm -f ./*.vim ./*/*.vim |
623 | 36 _get https://hg.nginx.org/nginx/raw-file/tip/contrib/vim/syntax/nginx.vim |
632
c950f0ef2268
Apparently better use githubusercontent?
nanaya <me@nanaya.pro>
parents:
631
diff
changeset
|
37 _get https://raw.githubusercontent.com/jwalton512/vim-blade/master/syntax/blade.vim |
c950f0ef2268
Apparently better use githubusercontent?
nanaya <me@nanaya.pro>
parents:
631
diff
changeset
|
38 _get https://raw.githubusercontent.com/kchmck/vim-coffee-script/master/syntax/coffee.vim |
c950f0ef2268
Apparently better use githubusercontent?
nanaya <me@nanaya.pro>
parents:
631
diff
changeset
|
39 _get https://raw.githubusercontent.com/slim-template/vim-slim/master/syntax/slim.vim |
634
ced2ee9efd9f
Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents:
632
diff
changeset
|
40 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/css.vim |
632
c950f0ef2268
Apparently better use githubusercontent?
nanaya <me@nanaya.pro>
parents:
631
diff
changeset
|
41 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/eruby.vim |
634
ced2ee9efd9f
Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents:
632
diff
changeset
|
42 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/javascript.vim |
632
c950f0ef2268
Apparently better use githubusercontent?
nanaya <me@nanaya.pro>
parents:
631
diff
changeset
|
43 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/json.vim |
c950f0ef2268
Apparently better use githubusercontent?
nanaya <me@nanaya.pro>
parents:
631
diff
changeset
|
44 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/less.vim |
c950f0ef2268
Apparently better use githubusercontent?
nanaya <me@nanaya.pro>
parents:
631
diff
changeset
|
45 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/ruby.vim |
c950f0ef2268
Apparently better use githubusercontent?
nanaya <me@nanaya.pro>
parents:
631
diff
changeset
|
46 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/scss.vim |
672 | 47 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/typescript.vim |
688 | 48 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/shared/typescriptcommon.vim shared |
672 | 49 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/typescriptreact.vim |
572 | 50 ) |
662
f280738a90a6
[vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
660
diff
changeset
|
51 |
f280738a90a6
[vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
660
diff
changeset
|
52 ( |
f280738a90a6
[vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
660
diff
changeset
|
53 cd "$(dirname "$0")/vendor/vim-colors" |
f280738a90a6
[vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
660
diff
changeset
|
54 |
688 | 55 rm -f ./*.vim ./*/*.vim |
662
f280738a90a6
[vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
660
diff
changeset
|
56 _get https://raw.githubusercontent.com/NLKNguyen/papercolor-theme/master/colors/PaperColor.vim |
f280738a90a6
[vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
660
diff
changeset
|
57 _get https://raw.githubusercontent.com/srcery-colors/srcery-vim/master/colors/srcery.vim |
f280738a90a6
[vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
660
diff
changeset
|
58 _get https://raw.githubusercontent.com/tomasiser/vim-code-dark/master/colors/codedark.vim |
f280738a90a6
[vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
660
diff
changeset
|
59 ) |