annotate update-vendor @ 713:4f5b040a589c

Remove support for old openbsd tmux
author nanaya <me@nanaya.net>
date Thu, 19 Oct 2023 05:52:05 +0900
parents 4576f1471f53
children 42e58cea7821
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
3 set -u
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
4 set -e
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
5
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
6
704
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
7 for _cmd in wget unzip; do
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
8 if command -v "$_cmd" > /dev/null 2>&1; then :
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
9 else
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
10 echo "${_cmd} is required"
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
11 exit 1
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
12 fi
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
13 done
572
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
14
508
bbcffc594d1e Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff changeset
15 _get() {
688
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 672
diff changeset
16 (
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 672
diff changeset
17 if [ -n "${2:-}" ]; then
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 672
diff changeset
18 mkdir -p "$2" && cd "$2"
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 672
diff changeset
19 fi
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 672
diff changeset
20 wget -nv "$1"
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 672
diff changeset
21 )
508
bbcffc594d1e Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff changeset
22 }
bbcffc594d1e Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff changeset
23
704
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
24 _get_pack_github() {
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
25 (
707
4576f1471f53 [update-vendor, vim] add ctrlp
nanaya <me@nanaya.net>
parents: 706
diff changeset
26 wget -nv -O - "https://github.com/${1}/${2}/archive/refs/heads/${3}.zip" | unzip -q -
4576f1471f53 [update-vendor, vim] add ctrlp
nanaya <me@nanaya.net>
parents: 706
diff changeset
27 mv "./${2}-${3}" "./${2}"
704
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
28 )
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
29 }
572
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
30
704
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
31 _autoloads() {
572
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
32 (
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
33 cd "$(dirname "$0")/vendor/vim-autoload"
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
34
688
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 672
diff changeset
35 rm -f ./*.vim ./*/*.vim
572
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
36 _get "https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim"
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
37 )
704
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
38 }
572
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
39
704
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
40 _syntaxes() {
572
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
41 (
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
42 cd "$(dirname "$0")/vendor/vim-syntax"
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
43
688
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 672
diff changeset
44 rm -f ./*.vim ./*/*.vim
623
0f0bdbd8d37d Update syntax files
nanaya <me@nanaya.pro>
parents: 621
diff changeset
45 _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
46 _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
47 _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
48 _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
49 _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
50 _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
51 _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
52 _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
53 _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
54 _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
55 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/scss.vim
672
2febdacae5b4 Use base vim typescript syntax
nanaya <me@nanaya.pro>
parents: 662
diff changeset
56 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/typescript.vim
688
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 672
diff changeset
57 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/shared/typescriptcommon.vim shared
672
2febdacae5b4 Use base vim typescript syntax
nanaya <me@nanaya.pro>
parents: 662
diff changeset
58 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/typescriptreact.vim
572
a163d6875651 Vendor autoloads.
nanaya <me@myconan.net>
parents: 540
diff changeset
59 )
704
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
60 }
662
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents: 660
diff changeset
61
704
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
62 _colors() {
662
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents: 660
diff changeset
63 (
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents: 660
diff changeset
64 cd "$(dirname "$0")/vendor/vim-colors"
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents: 660
diff changeset
65
688
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 672
diff changeset
66 rm -f ./*.vim ./*/*.vim
662
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents: 660
diff changeset
67 _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
68 _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
69 )
704
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
70 }
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
71
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
72 _packs() {
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
73 (
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
74 cd "$(dirname "$0")/vendor/vim-packs"
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
75
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
76 touch empty
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
77 rm -rf ./*
707
4576f1471f53 [update-vendor, vim] add ctrlp
nanaya <me@nanaya.net>
parents: 706
diff changeset
78 _get_pack_github "srcery-colors" "srcery-vim" "master"
4576f1471f53 [update-vendor, vim] add ctrlp
nanaya <me@nanaya.net>
parents: 706
diff changeset
79 _get_pack_github "ctrlpvim" "ctrlp.vim" "master"
704
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
80 )
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
81 }
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
82
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
83 _autoloads
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
84 _syntaxes
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
85 _colors
1e0f578f6752 Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents: 688
diff changeset
86 _packs