-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.sh
42 lines (33 loc) · 840 Bytes
/
make.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
function update-submodules() {
set -x
echo """
machine gitlab.astro.unige.ch
login gitlab-ci-token
password ${CI_JOB_TOKEN}
""" >> $HOME/.netrc
chmod 400 $HOME/.netrc
for c in cdci_*; do
# (
# cd $c
# git remote set-url origin $(git remote get-url origin | sed 's/git@/https:\/\//; s/.ch:/.ch\//')
# git pull origin staging-1.3
# )
echo
# git add $c
done
git config user.email "[email protected]"
git config user.name "ODA CI Bot"
git commit -a -m "updated submodules"
sed 's/git@/https:\/\//; s/.ch:/.ch\//' -i .gitmodules
}
function prepare-js9() {
(
set -ex
cd js9
./configure --with-webdir=../static-js9
make install
cp -fv ../static-js9-prefs/* ../static-js9
)
}
$@