#!/bin/sh export CURUSER=`whoami` pear config-create $HOME .pearrc pear config-set download_dir /home/${CURUSER}/pear/cache pear config-set cache_dir /home/${CURUSER}/pear/cache pear config-set temp_dir /home/${CURUSER}/pear/temp if grep 'export PHP_PEAR_PHP_BIN=/usr/local/php5/bin/php' ~/.bash_profile; then echo ".bash_profile already has export line for PHP BIN. Skipping this!" else echo 'export PHP_PEAR_PHP_BIN=/usr/local/php5/bin/php' >> ~/.bash_profile; echo "Added export line to .bash_profile!" export PHP_PEAR_PHP_BIN=/usr/local/php5/bin/php fi if grep "/home/${CURUSER}/pear" .bash_profile; then echo ".bash_profile already has had PATH modified! Skipping this!"; else echo "export PATH=/home/${CURUSER}/pear:/usr/local/php5/bin:$PATH" >> .bash_profile; echo "Added PEAR to PATH and added export to .bash_profile!"; export PATH=/home/${CURUSER}/pear:/usr/local/php5/bin:$PATH fi echo "Initial PEAR settings have been setup. .bash_profile has been modified." echo "Installed PEAR!"