Mercurial > ec-dotfiles
annotate update-vendor @ 719:bcdf320dabf4
Rewrite the ed2k again in php
Getting openssl to hash md4 is a pain.
author | nanaya <me@nanaya.net> |
---|---|
date | Sun, 10 Dec 2023 00:35:22 +0900 |
parents | 1f8218896f2a |
children | 0a896ffe3029 |
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 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
6 for _cmd in wget unzip; do |
718
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
7 if command -v "$_cmd" > /dev/null 2>&1; then : |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
8 else |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
9 echo "${_cmd} is required" |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
10 exit 1 |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
11 fi |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
12 done |
572 | 13 |
508
bbcffc594d1e
Vendor what should be vendored and add some more.
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
14 _get() { |
718
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
15 ( |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
16 if [ -n "${2:-}" ]; then |
688 | 17 mkdir -p "$2" && cd "$2" |
718
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
18 fi |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
19 wget -nv "$1" |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
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 |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
23 _get_pack_github() { |
718
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
24 ( |
707 | 25 wget -nv -O - "https://github.com/${1}/${2}/archive/refs/heads/${3}.zip" | unzip -q - |
26 mv "./${2}-${3}" "./${2}" | |
718
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
27 ) |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
28 } |
572 | 29 |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
30 _syntaxes() { |
572 | 31 ( |
718
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
32 cd "$(dirname "$0")/vendor/vim-syntax" |
572 | 33 |
718
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
34 rm -f ./*.vim ./*/*.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
35 _get https://hg.nginx.org/nginx/raw-file/tip/contrib/vim/syntax/nginx.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
36 _get https://raw.githubusercontent.com/jwalton512/vim-blade/master/syntax/blade.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
37 _get https://raw.githubusercontent.com/kchmck/vim-coffee-script/master/syntax/coffee.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
38 _get https://raw.githubusercontent.com/slim-template/vim-slim/master/syntax/slim.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
39 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/css.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
40 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/eruby.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
41 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/javascript.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
42 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/json.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
43 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/less.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
44 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/ruby.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
45 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/scss.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
46 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/typescript.vim |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
47 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/shared/typescriptcommon.vim shared |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
48 _get https://raw.githubusercontent.com/vim/vim/master/runtime/syntax/typescriptreact.vim |
572 | 49 ) |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
50 } |
662
f280738a90a6
[vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
660
diff
changeset
|
51 |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
52 _packs() { |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
53 ( |
718
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
54 cd "$(dirname "$0")/vendor/vim-packs" |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
55 |
718
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
56 rm -rf ./* |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
57 _get_pack_github "srcery-colors" "srcery-vim" "master" |
1f8218896f2a
[update-vendor] Fix indents and remove useless touch
nanaya <me@nanaya.net>
parents:
716
diff
changeset
|
58 _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
|
59 ) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
60 } |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
61 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
62 _syntaxes |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
688
diff
changeset
|
63 _packs |