File tree 3 files changed +25
-15
lines changed
3 files changed +25
-15
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ cd " $( dirname " $0 " ) "
4
+
5
+ for slug in " $@ "
6
+ do
7
+ plugin_project=" ${slug##*/ } "
8
+ plugin_dir=" plugins/${plugin_project# librime-} "
9
+ if [[ -d " ${plugin_dir} " ]]
10
+ then
11
+ echo " Updating plugin: ${plugin_dir} "
12
+ git -C " ${plugin_dir} " checkout master
13
+ git -C " ${plugin_dir} " pull
14
+ else
15
+ git clone --depth 1 " https://github.com/${slug} .git" " ${plugin_dir} "
16
+ fi
17
+ done
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,10 +19,15 @@ if [[ "$TRAVIS_OS_NAME" == linux ]]; then
19
19
make -C thirdparty/src/opencc build
20
20
sudo env " PATH=$PATH " make -C thirdparty/src/opencc install
21
21
elif [[ " $TRAVIS_OS_NAME " == osx ]]; then
22
- make -f xcode.mk thirdparty
22
+ make xcode/ thirdparty
23
23
fi
24
24
25
25
if [[ -n " ${RIME_PLUGINS} " ]]; then
26
- # intentionally not quoted: ${RIME_PLUGIN} is a space separated list of slugs
27
- bash ./travis-install-plugins.sh ${RIME_PLUGINS}
26
+ # intentionally unquoted: ${RIME_PLUGINS} is a space separated list of slugs
27
+ bash ./install-plugins.sh ${RIME_PLUGINS}
28
+ for plugin_dir in plugins/* ; do
29
+ if [[ -e " ${plugin_dir} /travis-install.sh" ]]; then
30
+ bash " ${plugin_dir} /travis-install.sh"
31
+ fi
32
+ done
28
33
fi
You can’t perform that action at this time.
0 commit comments