Mercurial > ec-dotfiles
annotate update-vendor @ 717:11cbbaf42768
Remove unused install-vim-rails
| author | nanaya <me@nanaya.net> | 
|---|---|
| date | Mon, 19 Dec 2022 05:44:38 +0900 | 
| parents | 42e58cea7821 | 
| children | 1f8218896f2a | 
| 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 | |
| 704 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 7 for _cmd in wget unzip; do | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
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: 
688diff
changeset | 9 else | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 10 echo "${_cmd} is required" | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 11 exit 1 | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 12 fi | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 13 done | 
| 572 | 14 | 
| 508 
bbcffc594d1e
Vendor what should be vendored and add some more.
 edogawaconan <me@myconan.net> parents: diff
changeset | 15 _get() { | 
| 688 | 16 ( | 
| 17 if [ -n "${2:-}" ]; then | |
| 18 mkdir -p "$2" && cd "$2" | |
| 19 fi | |
| 20 wget -nv "$1" | |
| 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: 
688diff
changeset | 24 _get_pack_github() { | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 25 ( | 
| 707 | 26 wget -nv -O - "https://github.com/${1}/${2}/archive/refs/heads/${3}.zip" | unzip -q - | 
| 27 mv "./${2}-${3}" "./${2}" | |
| 704 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 28 ) | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 29 } | 
| 572 | 30 | 
| 704 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 31 _syntaxes() { | 
| 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: 
631diff
changeset | 37 _get https://raw.githubusercontent.com/jwalton512/vim-blade/master/syntax/blade.vim | 
| 
c950f0ef2268
Apparently better use githubusercontent?
 nanaya <me@nanaya.pro> parents: 
631diff
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: 
631diff
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: 
632diff
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: 
631diff
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: 
632diff
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: 
631diff
changeset | 43 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/json.vim | 
| 
c950f0ef2268
Apparently better use githubusercontent?
 nanaya <me@nanaya.pro> parents: 
631diff
changeset | 44 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/less.vim | 
| 
c950f0ef2268
Apparently better use githubusercontent?
 nanaya <me@nanaya.pro> parents: 
631diff
changeset | 45 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/ruby.vim | 
| 
c950f0ef2268
Apparently better use githubusercontent?
 nanaya <me@nanaya.pro> parents: 
631diff
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 ) | 
| 704 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 51 } | 
| 662 
f280738a90a6
[vim] vendor theme and add some more
 nanaya <me@nanaya.pro> parents: 
660diff
changeset | 52 | 
| 704 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 53 _packs() { | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 54 ( | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 55 cd "$(dirname "$0")/vendor/vim-packs" | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 56 | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 57 touch empty | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 58 rm -rf ./* | 
| 707 | 59 _get_pack_github "srcery-colors" "srcery-vim" "master" | 
| 60 _get_pack_github "ctrlpvim" "ctrlp.vim" "master" | |
| 704 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 61 ) | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 62 } | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 63 | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 64 _syntaxes | 
| 
1e0f578f6752
Update vendor and add support for vim packs
 nanaya <me@nanaya.net> parents: 
688diff
changeset | 65 _packs | 
