forked from cspace-deployment/radiance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-all.sh
executable file
·51 lines (39 loc) · 1.1 KB
/
deploy-all.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
43
44
45
46
47
48
49
50
51
#!/bin/bash
# lil helper script to deploy both cinefiles and pahma blacklight apps
function usage() {
echo
echo " Usage: $0 version prod|dev"
echo
echo " e.g. $0 2.0.10-rc2 prod"
echo
exit
}
if [ $# -ne 2 ]; then
usage
fi
if ! grep -q " $2 " <<< " prod dev "; then
usage
fi
YYYYMMDDHHMM=`date +%Y%m%d%H%M`
# update radiance repo
cd ${HOME}/projects/radiance
git checkout main
git pull -v
cd ${HOME}/projects
# redeploy both
radiance/deploy.sh ${YYYYMMDDHHMM}.pahma $2 $1
radiance/deploy.sh ${YYYYMMDDHHMM}.cinefiles $2 $1
radiance/deploy.sh ${YYYYMMDDHHMM}.bampfa $2 $1
# relink both
radiance/relink.sh ${YYYYMMDDHHMM}.pahma pahma $2
radiance/relink.sh ${YYYYMMDDHHMM}.cinefiles cinefiles $2
radiance/relink.sh ${YYYYMMDDHHMM}.bampfa bampfa $2
cd ${HOME}/projects/${YYYYMMDDHHMM}.pahma
./install_ucb.sh pahma
# apply customizations
cd ${HOME}/projects/${YYYYMMDDHHMM}.cinefiles
./install_ucb.sh cinefiles
cd ${HOME}/projects/${YYYYMMDDHHMM}.bampfa
# TODO: bampfa install should be its own thing, not piggyback on cinefiles
./install_ucb.sh cinefiles
./make-bampfa-demo.sh