From fd8bec86340cf56a2b2f73e5ee981df6961c1ecf Mon Sep 17 00:00:00 2001 From: Raymond Chandler Date: Thu, 18 Dec 2008 20:27:28 +0000 Subject: [PATCH] make sure we have access to essential tools git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10872 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- support-d/prereq.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 support-d/prereq.sh diff --git a/support-d/prereq.sh b/support-d/prereq.sh new file mode 100755 index 0000000000..7453b793a5 --- /dev/null +++ b/support-d/prereq.sh @@ -0,0 +1,22 @@ +UNAME=`uname` + + +NEEDED_PACKAGES_YUM='automake autoconf libtool screen gdb gcc-c++ compat-gcc-32 compat-gcc-32-c++ subversion ncurses-devel unixODBC-devel' +NEEDED_PACAKGES_APT='automake autoconf libtool screen gdb libncurses5-dev unixodbc-dev subversion emacs22-nox gcc g++ ' +NEEDED_PACKAGES_PKG_ADD='' + + + +echo ${UNAME} | grep "Linux" && GETTER='wget -c' +echo ${UNAME} | grep "BSD" && GETTER='fetch' + + +which apt-get >> /dev/null && INSTALLER='apt-get -y install' && NEEDED_PACKAGES=$NEEDED_PACAKGES_APT +which yum >> /dev/null && INSTALLER='yum -y install' && NEEDED_PACKAGES=$NEEDED_PACKAGES_YUM +which pkg_add >> /dev/null && INSTALLER='pkg_add -r' && NEEDED_PACKAGES=$NEEDED_PACKAGES_PKG_ADD + + +#echo $GETTER and $INSTALLER +#echo ${INSTALLER} ${NEEDED_PACKAGES} +${INSTALLER} ${NEEDED_PACKAGES} +