Signed-Off-By: Subrata Modak <[email protected]>
--

diff -uprN ltp-full-20090131.orig/install-required-packages.sh 
ltp-full-20090131/install-required-packages.sh
--- ltp-full-20090131.orig/install-required-packages.sh 1970-01-01 
05:30:00.000000000 +0530
+++ ltp-full-20090131/install-required-packages.sh      2009-02-16 
17:13:42.000000000 +0530
@@ -0,0 +1,97 @@
+#!/bin/sh
+################################################################################
+##                                                                            
##
+## Copyright (c) International Business Machines  Corp., 2009                 
##
+##                                                                            
##
+## This program is free software;  you can redistribute it and#or modify      
##
+## it under the terms of the GNU General Public License as published by       
##
+## the Free Software Foundation; either version 2 of the License, or          
##
+## (at your option) any later version.                                        
##
+##                                                                            
##
+## This program is distributed in the hope that it will be useful, but        
##
+## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
##
+## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   
##
+## for more details.                                                          
##
+##                                                                            
##
+## You should have received a copy of the GNU General Public License          
##
+## along with this program;  if not, write to the Free Software               
##
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA    
##
+##                                                                            
##
+################################################################################
+
+
+if [ $UID -ne 0 ]; then
+        echo "You need to be root to install these packages"
+        exit 1
+fi
+
+pwd=`echo $PWD`
+cd /tmp/
+
+which wget
+if [ $? -eq 1 ]; then
+        echo "...wget... not available on your system. Cannot download and 
install LTP Pre-requisite packages"
+        exit 0
+fi
+
+m4 --version | grep 1.4.12
+if [ $? -eq 0 ]; then
+        echo "m4-1.4.12 is already installed in the system. Skipping to 
download this....."
+else
+          echo "Starting to Install m4-1.4.12 on your system.....";
+          wget -c http://ftp.gnu.org/gnu/m4/m4-1.4.12.tar.bz2;
+          if [ $? -ne 0 ]
+          then
+               echo "Problem getting m4-1.4.12 package from Internet. Skipping 
to install other Packages....."
+               exit 1
+          fi
+          tar -xjf m4-1.4.12.tar.bz2
+          (cd m4-1.4.12 && ./configure && make && make install)
+          if [ $? -ne 0 ]
+          then
+               echo "Problem Building/Installing m4-1.4.12. Skipping to 
install other Packages....."
+               exit 1
+          fi 
+       echo "m4-1.4.12 is now successfully installed in your system....."
+fi
+
+autoconf --version | grep 2.61
+if [ $? -eq 0 ]; then
+        echo "autoconf-2.61 is already installed in the system. Skipping to 
download this....."
+else
+          echo "Starting to Install autoconf-2.61 on your system....."
+          wget -c ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz
+          if [ $? -ne 0 ]; then
+               echo "Problem getting autoconf-2.61 package from Internet. 
Skipping to install other Packages....."
+               exit 1
+          fi
+          tar -xzf autoconf-2.61.tar.gz
+          (cd autoconf-2.61 && ./configure && make && make install)
+          if [ $? -ne 0 ]; then
+               echo "Problem Building/Installing autoconf-2.61. Skipping to 
install other Packages....."
+               exit 1
+          fi
+       echo "autoconf-2.61 is now successfully installed in your system....."
+fi
+
+automake --version | grep 1.10.2
+if [ $? -eq 0 ]; then
+        echo "automake-1.10.2 is already installed in the system. Skipping to 
download this....."
+else
+          echo "Starting to Install automake-1.10.2 on your system....."
+          wget -c ftp://ftp.gnu.org/gnu/automake/automake-1.10.2.tar.gz
+          if [ $? -ne 0 ]; then
+               echo "Problem getting automake-1.10.2 package from Internet. 
Skipping to install other Packages....."
+               exit 1
+          fi
+          tar -xzf automake-1.10.2.tar.gz
+          (cd automake-1.10.2 && ./configure && make && make install)
+          if [ $? -ne 0 ]; then
+               echo "Problem Building/Installing automake-1.10.2. Skipping to 
install other Packages....."
+               exit 1
+          fi
+       echo "automake-1.10.2 is now successfully installed in your system....."
+fi
+cd $pwd
+exit 0
+

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to