diff options
author | Stuart Herbert <stuart@gentoo.org> | 2003-08-03 23:10:11 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2003-08-03 23:10:11 +0000 |
commit | d6b75b3274b94f2e5af86c7807122a5b8e4bdd12 (patch) | |
tree | a865b17b5307394dedf28dfb6e9134c98f2c9540 /eclass | |
parent | Added block on turck-mmcache (diff) | |
download | gentoo-2-d6b75b3274b94f2e5af86c7807122a5b8e4bdd12.tar.gz gentoo-2-d6b75b3274b94f2e5af86c7807122a5b8e4bdd12.tar.bz2 gentoo-2-d6b75b3274b94f2e5af86c7807122a5b8e4bdd12.zip |
Fix for supporting old /etc/php4 directory
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/php-ext-base.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/php-ext-base.eclass b/eclass/php-ext-base.eclass index 5dfa15859186..533b17b94ce3 100644 --- a/eclass/php-ext-base.eclass +++ b/eclass/php-ext-base.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-base.eclass,v 1.5 2003/08/03 22:26:16 stuart Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-base.eclass,v 1.6 2003/08/03 23:10:11 stuart Exp $ # # Author: Tal Peer <coredumb@gentoo.org> # Author: Stuart Herbert <stuart@gentoo.org> @@ -46,7 +46,7 @@ php-ext-base_buildinilist () { PHPSAPILIST="apache1 apache2 cli" fi - PHPINIFILELIST="" + PHPINIFILELIST= for x in ${PHPSAPILIST} ; do if [ -f /etc/php/${x}-php4/php.ini ]; then @@ -54,7 +54,7 @@ php-ext-base_buildinilist () { fi done - if [[ ${PHPINIFILELIST} = "" ]]; then + if [ "${PHPINIFILELIST}+" = "+" ] ; then # backwards support for the old location if [ -f /etc/php4/php.ini ] ; then @@ -89,7 +89,7 @@ php-ext-base_addextension () { } php-ext-base_setting_is_present () { - grep "^$1=$2" $3 > /dev/null 2>&1 + grep "^$1=$2" /$3 > /dev/null 2>&1 } php-ext-base_inifileinimage () { |