Skip to content
Browse files

WHISTLE-1590: update the build beams script to use the make system

  • Loading branch information...
1 parent ad14552 commit 3364ed3780c3cd7fb2911b6cd9f262855bbd7b79 @k-anderson k-anderson committed Nov 11, 2012
Showing with 3 additions and 72 deletions.
  1. +3 −72 bin/build_beams.sh
View
75 bin/build_beams.sh
@@ -22,81 +22,12 @@ fExportLibs() {
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
+cd ${WDIR}
+make clean
+make
exit 0

0 comments on commit 3364ed3

Please sign in to comment.
Something went wrong with that request. Please try again.