sintonia/livesupport/tools/pear/bin/install.sh
maroy d155ab91ab added a workaround so that pear packages are installed under
usr/lib/php always (sometimes the pear installer puts  them into
usr/share/pear instead)
2005-05-01 11:13:46 +00:00

78 lines
2.6 KiB
Bash
Executable file

#!/bin/sh
#-------------------------------------------------------------------------------
# Copyright (c) 2004 Media Development Loan Fund
#
# This file is part of the LiveSupport project.
# http://livesupport.campware.org/
# To report bugs, send an e-mail to bugs@campware.org
#
# LiveSupport 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.
#
# LiveSupport 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 LiveSupport; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#
# Author : $Author: maroy $
# Version : $Revision: 1.2 $
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/tools/pear/bin/install.sh,v $
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Run this script to install pear packages needed by LiveSupport into the
# development system usr environment.
# To read more about pear, see http://pear.php.net/
#-------------------------------------------------------------------------------
description="PEAR packages needed by LiveSupport"
#PEAR-1.4.0a11.tgz
packages="
Archive_Tar-1.3.1.tgz
Console_Getopt-1.2.tgz
XML_RPC-1.3.0RC1.tgz
PEAR-1.3.5.tgz
Calendar-0.5.2.tgz
DB-1.7.6.tgz
File-1.2.0.tgz
File_Find-0.3.1.tgz
HTML_Common-1.2.1.tgz
HTML_QuickForm-3.2.4pl1.tgz
XML_Util-1.1.1.tgz
XML_Parser-1.2.6.tgz
XML_Beautifier-1.1.tgz
XML_Serializer-0.15.0.tgz
"
reldir=`dirname $0`/..
basedir=`cd $reldir; pwd;`
rootdir=`cd $basedir/../..; pwd;`
tmpdir=$basedir/tmp
etcdir=$basedir/etc
usrdir=$rootdir/usr
echo "installing $description (with rootdir: $rootdir)"
cd $basedir/src
for i in $packages
do echo $i
pear install -R $rootdir $i || \
{ echo "*** ERROR installing $i"; exit 1; }
done
# ugly work-around, as some system install the modules under
# usr/share/pear, but we're expecting it to be at usr/lib/php
if [ -d $usrdir/share/pear ]; then
rm -rf $usrdir/lib/php
mv -f $usrdir/share/pear $usrdir/lib/php
fi
echo "PEAR packages install finished OK"
exit 0