Skip to content

Commit 25df991

Browse files
committed
ltc: add ltc addon
1 parent 058856f commit 25df991

File tree

1 file changed

+34
-51
lines changed

1 file changed

+34
-51
lines changed

ci/common.deps.sh

Lines changed: 34 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,40 @@
33
(
44
cd src/addons
55

6-
if [[ ! -d iscore-addon-network ]]; then
7-
git clone --recursive -j16 https://github.com/ossia/iscore-addon-network
8-
fi
9-
10-
if [[ ! -d score-addon-synthimi ]]; then
11-
git clone --recursive -j16 https://github.com/ossia/score-addon-synthimi
12-
fi
13-
14-
if [[ ! -d score-addon-threedim ]]; then
15-
git clone --recursive -j16 https://github.com/ossia/score-addon-threedim
16-
fi
17-
18-
if [[ ! -d score-addon-jk ]]; then
19-
git clone --recursive -j16 https://github.com/ossia/score-addon-jk
20-
fi
21-
22-
if [[ ! -d score-addon-ndi ]]; then
23-
git clone --recursive -j16 https://github.com/ossia/score-addon-ndi
24-
fi
25-
26-
if [[ ! -d score-avnd-granola ]]; then
27-
git clone --recursive -j16 https://github.com/bltzr/score-avnd-granola
28-
fi
29-
30-
if [[ ! -d score-addon-ultraleap ]]; then
31-
git clone --recursive -j16 https://github.com/ossia/score-addon-ultraleap
32-
fi
33-
34-
if [[ ! -d score-addon-contextfree ]]; then
35-
git clone --recursive -j16 https://github.com/ossia/score-addon-contextfree
36-
fi
37-
38-
if [[ ! -d score-addon-ble ]]; then
39-
git clone --recursive -j16 https://github.com/ossia/score-addon-ble
40-
fi
41-
42-
if [[ ! -d score-addon-led ]]; then
43-
git clone --recursive -j16 https://github.com/ossia/score-addon-led
44-
fi
45-
46-
if [[ ! -d score-addon-spatgris ]]; then
47-
git clone --recursive -j16 https://github.com/ossia/score-addon-spatgris
48-
fi
49-
50-
if [[ ! -d score-addon-hdf5 ]]; then
51-
git clone --recursive -j16 https://github.com/ossia/score-addon-hdf5
52-
fi
53-
54-
if [[ ! -d score-addon-puara ]]; then
55-
git clone --recursive -j16 https://github.com/ossia/score-addon-puara
56-
fi
6+
clone_addon() {
7+
local url=${1}
8+
local folder=$(echo "${url}" | awk -F'/' '{print $NF}')
9+
10+
(
11+
if [[ ! -d "$folder" ]]; then
12+
git clone --recursive -j16 "$url"
13+
else
14+
# Try to update the submodule if it's really super clean
15+
cd "$folder"
16+
git update-index --really-refresh
17+
if output=$(git status --porcelain --untracked-files=no) && [ -z "$output" ]; then
18+
if output=$(git diff-index --quiet HEAD) && [ -z "$output" ]; then
19+
git pull || true
20+
fi
21+
fi
22+
fi
23+
)
24+
}
25+
26+
clone_addon https://github.com/ossia/iscore-addon-network
27+
clone_addon https://github.com/ossia/score-addon-synthimi
28+
clone_addon https://github.com/ossia/score-addon-threedim
29+
clone_addon https://github.com/ossia/score-addon-jk
30+
clone_addon https://github.com/ossia/score-addon-ndi
31+
clone_addon https://github.com/bltzr/score-avnd-granola
32+
clone_addon https://github.com/ossia/score-addon-ultraleap
33+
clone_addon https://github.com/ossia/score-addon-contextfree
34+
clone_addon https://github.com/ossia/score-addon-ble
35+
clone_addon https://github.com/ossia/score-addon-led
36+
clone_addon https://github.com/ossia/score-addon-spatgris
37+
clone_addon https://github.com/ossia/score-addon-hdf5
38+
clone_addon https://github.com/ossia/score-addon-puara
39+
clone_addon https://github.com/ossia/score-addon-ltc
5740

5841
)
5942

0 commit comments

Comments
 (0)