-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-env
executable file
·101 lines (96 loc) · 2.47 KB
/
setup-env
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#! /bin/bash
# set -x
# m
# cs
E=$1
S=/home/jthu/bin/scripts
if [ $# -lt 1 ] ; then
E='syns' # default
fi
echo "Setup $E env."
if [ $E = 'cs' ]; then
for f in r.cs r.cs.borgmon r.cs.canary r.cs.fire r.cs.gdb r.cs.key r.cs.load r.cs.perf r.cs.perf.prod r.cs.run.local r.cs.fe_be b.cs t.cs
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'm' ]; then # admixer
for f in r.m r.m.canary r.m.drill r.m.eval r.m.exp r.m.fire r.m.load r.m.load.prod r.m.my r.m.perf r.m.perf.prod r.m.regtest b.m t.m r.m.borgmon
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'amfe' ]; then
for f in r.amfe r.amfe.canary r.amfe.fire r.amfe.load r.amfe.my
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'astra' ]; then
for f in r.astra r.astra.index r.astra.index.prod r.astra.load r.astra.mustang r.astra.mustang.prod r.astra.my r.astra.perf r.astra.perf.prod r.astra.pipeline b.astra b.astra.pipeline t.astra r.astra.canary r.astra.fire r.astra.borgmon
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'charon' ]; then
for f in r.charon r.charon.migration r.charon.yh
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'cl' ]; then
for f in r.cl r.cl.canary r.cl.load r.cl.perf r.cl.fire
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'creative' ]; then
for f in r.creative r.creative.my r.creative.load r.creative.perf r.creative.perf.prod r.creative.canary
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'impression' ]; then
for f in b.impression r.impression
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'qrewrite' ]; then # ads qrewrite
for f in r.qrewrite.load r.qrewrite.canary
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'qr' ]; then # web qrewrite
for f in r.qr
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'release' ]; then
for f in b.release r.release t.release
do
echo "Link $f ..."
ln -sf $S/$f .
done
elif [ $E = 'jthu' ]; then
for f in .emacs .bashrc .gitconfig .git5rc .dremelrc .ssh .blazerc .bash_aliases
do
echo "copy $f ..."
ln -s -f /home/jthu/$f ~/
done
for f in bin doc data www
do
echo "Link $f ..."
ln -sf /home/jthu/$f ~
done
ln -s /home/build/google3 ~/x
elif [ $E = 'syns' ]; then # default
for f in r.syns b.syns t.syns r.syns.build r.syns.debug r.syns.train r.syns.common
do
echo "Link $f ..."
ln -sf $S/$f .
done
ln -sf r.syns.train r
fi