cvs: pearweb /public_html go-pear

From: Date: Sun, 12 May 2002 17:10:07 +0000
Subject: cvs: pearweb /public_html go-pear
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3786@lists.php.net to get a copy of this message
cox Sun May 12 13:10:07 2002 EDT Modified files: /pearweb/public_html go-pear Log: Adapt go-pear to the new php4/pear/ structure Index: pearweb/public_html/go-pear diff -u pearweb/public_html/go-pear:1.4 pearweb/public_html/go-pear:1.5 --- pearweb/public_html/go-pear:1.4 Wed May 8 18:56:29 2002 +++ pearweb/public_html/go-pear Sun May 12 13:10:07 2002 @@ -15,7 +15,7 @@ # | Authors: Tomas V.V.Cox <cox@idecnet.com> | # +----------------------------------------------------------------------+ # -# $Id: go-pear,v 1.4 2002/05/08 22:56:29 cox Exp $ +# $Id: go-pear,v 1.5 2002/05/12 17:10:07 cox Exp $ # # Automatically download all the files needed to run the "pear" command # (the PEAR package installer) @@ -109,7 +109,11 @@ read installall < /dev/tty files="/" if [ echo $installall | grep -i 'n' ]; then - files="/scripts/pear.in /Archive/Tar.php /Console/Getopt.php /PEAR.php /System.php /PEAR" + files="/scripts/pear.in /Archive/Tar.php /Console/Getopt.php /PEAR.php \ + /System.php /PEAR /OS /package-Archive_Tar.xml \ + /package-Console_Getopt.xml /package-PEAR.xml \ + /packages/XML_RPC-1.0.2.tar /package.dtd" + installall="n" fi #### @@ -153,14 +157,31 @@ #### prefix=echo $prefix | perl -pe 's#\/#\x5c\/#g;' -cat $pearin | perl -pe "s#\@prefix@#$prefix\/bin#" > $TARGET - -cd $origpwd +cat $pearin | perl -pe "s#\@prefix@#$prefix#" > $TARGET chmod +x $TARGET -rm -rf $PTMP +#### +# Install needed packages and finish the registration +#### + +PEAR="php -C -d include_path=$PTMP/php4/pear -f $TARGET -- " +$PEAR -D php_dir=$destdir -S +$PEAR -r install php4/pear/package-Archive_Tar.xml +$PEAR -r install php4/pear/package-Console_Getopt.xml +$PEAR -r install php4/pear/package-PEAR.xml +$PEAR install -s php4/pear/packages/XML_RPC-1.0.2.tar +if [ "$installall" != "n" ]; then + for i in "php4/pear/packages/*"; do + $PEAR -s install $i + done +fi + +#### +# Clean up and finish +#### -pear -D php_dir=$destdir -S +cd $origpwd +rm -rf $PTMP echo echo "The 'pear' command has been successfully installed under $TARGET"

« previous php.pear.cvs (#3786) next »