[Freeswitch-svn] [commit] r10872 - freeswitch/trunk/support-d
FreeSWITCH SVN
intralanman at freeswitch.org
Thu Dec 18 12:27:29 PST 2008
Author: intralanman
Date: Thu Dec 18 15:27:28 2008
New Revision: 10872
Log:
make sure we have access to essential tools
Added:
freeswitch/trunk/support-d/prereq.sh (contents, props changed)
Added: freeswitch/trunk/support-d/prereq.sh
==============================================================================
--- (empty file)
+++ freeswitch/trunk/support-d/prereq.sh Thu Dec 18 15:27:28 2008
@@ -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}
+
More information about the Freeswitch-svn
mailing list