From d6b75b3274b94f2e5af86c7807122a5b8e4bdd12 Mon Sep 17 00:00:00 2001 From: Stuart Herbert Date: Sun, 3 Aug 2003 23:10:11 +0000 Subject: Fix for supporting old /etc/php4 directory --- eclass/php-ext-base.eclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'eclass/php-ext-base.eclass') 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 # Author: Stuart Herbert @@ -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 () { -- cgit v1.2.3-65-gdbad