-
Notifications
You must be signed in to change notification settings - Fork 464
/
build_beams.sh
executable file
·102 lines (81 loc) · 2.89 KB
/
build_beams.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
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
102
#!/bin/sh
WDIR="$PWD/`dirname $0`/.."
REBAR=$WDIR/bin/rebar
fWelcome() { [0/1842]
clear
echo "======================================================="
echo " _ _ _ _ _ _____ _ _______ _ _______ "
echo "| || || | | | (_____) | | (_______) | (_______)"
echo "| || || | |__ | | _ \ \ _ | | _____ "
echo "| ||_|| | __)| | | | \ \| | | | | ___) "
echo "| |___| | | | |_| |_ _____) ) |_____| |_____| |_____ "
echo " \______|_| |_(_____|______/ \______)_______)_______)"
echo " - - - Signaling the start of next generation telephony"
echo "======================================================="
echo
}
fExportLibs() {
echo "# export ERL_LIBS=${WDIR}/lib/"
export ERL_LIBS=${WDIR}/lib/
}
fCompileUtils() {
echo "======================================================="
echo " Compiling Utilities"
echo "======================================================="
echo "# cd ${WDIR}/utils/diagnostics; ${REBAR} clean compile"
cd ${WDIR}/utils/diagnostics; ${REBAR} clean compile
echo
}
fCompileWhistleLibs() {
echo "======================================================="
echo " Compiling Whistle Libraries"
echo "======================================================="
echo "Compiling utils"
cd $WDIR/utils/diagnostics
$REBAR clean compile
echo "Compiling erlydtl"
cd $WDIR/lib/erlydtl*
$REBAR clean compile
echo "Compiling Whistle LIBS"
for WLIB in $WDIR/lib/whistle*
do
cd $WLIB
$REBAR clean compile
done
echo "Compiling ecallmgr"
cd $WDIR/ecallmgr
$REBAR clean compile
echo "Compiling Apps container and Apps"
cd $WDIR/whistle_apps
$REBAR clean compile
for WLIB in ${WDIR}/lib/whistle*
do
echo "# cd ${WLIB}; ${REBAR} clean compile"
cd ${WLIB}; ${REBAR} clean compile
echo
done
}
fCompileEcallmgr() {
echo "======================================================="
echo " Compiling Erlang Call Manager"
echo "======================================================="
echo "# cd ${WDIR}/ecallmgr; ${REBAR} clean compile"
cd ${WDIR}/ecallmgr; ${REBAR} clean compile
echo
}
fCompileWhApps() {
echo "======================================================="
echo " Compiling WhApps"
echo "======================================================="
echo "# cd ${WDIR}/whistle_apps; ${REBAR} clean compile"
cd ${WDIR}/whistle_apps; ${REBAR} clean compile
echo
}
fWelcome
fExportLibs
fCompileUtils
fCompileWhistleLibs
fCompileEcallmgr
fCompileWhApps
cd `readlink -f $0` # realpath
exit 0