diff options
author | Stuart Herbert <stuart@gentoo.org> | 2003-07-24 19:06:50 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2003-07-24 19:06:50 +0000 |
commit | dd27866fa2a9b0785a9a7386ebd8498086797a2e (patch) | |
tree | c4c52fcee3293b99835ecb19ff22bc3a5316f5c9 /eclass/php-ext-base.eclass | |
parent | Fix digest (diff) | |
download | gentoo-2-dd27866fa2a9b0785a9a7386ebd8498086797a2e.tar.gz gentoo-2-dd27866fa2a9b0785a9a7386ebd8498086797a2e.tar.bz2 gentoo-2-dd27866fa2a9b0785a9a7386ebd8498086797a2e.zip |
Fix for installing php.ini files
Diffstat (limited to 'eclass/php-ext-base.eclass')
-rw-r--r-- | eclass/php-ext-base.eclass | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/php-ext-base.eclass b/eclass/php-ext-base.eclass index df80b70e9a33..2f35dc4fcdf9 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.1 2003/07/24 15:15:50 stuart Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-base.eclass,v 1.2 2003/07/24 19:06:50 stuart Exp $ # # Author: Tal Peer <coredumb@gentoo.org> # @@ -84,8 +84,6 @@ php-ext-base_inifileinimage () { if [ ! -f $1 ]; then mkdir -p `dirname $1` cp /$1 $1 - insinto /`dirname $1` - doins $1 fi } @@ -101,13 +99,19 @@ php-ext-base_addtoinifile () { php-ext-base_inifileinimage $3 + echo "output to `pwd`/$3" echo "$1=$2" >> $3 if [ -z "$4" ]; then einfo "Added '$1=$2' to /$3" else - einfo "$4 to $3" + einfo "$4 to /$3" fi + + # yes, this is inefficient - but it works every time ;-) + + insinto /`dirname $3` + doins $3 } php-ext-base_addtoinifiles () { |