cvs: php-gtk-doc / configure.in
| From: | Andrei Zmievski | Date: | Sun, 01 Aug 2004 03:50:25 +0000 |
| Subject: | cvs: php-gtk-doc / configure.in | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-999@lists.php.net to get a copy of this message | ||
andrei Sat Jul 31 23:50:25 2004 EDT
Modified files:
/php-gtk-doc configure.in
Log:
Create destination directory if necessary.
http://cvs.php.net/diff.php/php-gtk-doc/configure.in?r1=1.22&r2=1.23&ty=u
Index: php-gtk-doc/configure.in
diff -u php-gtk-doc/configure.in:1.22 php-gtk-doc/configure.in:1.23
--- php-gtk-doc/configure.in:1.22 Thu Jul 29 00:37:18 2004
+++ php-gtk-doc/configure.in Sat Jul 31 23:50:25 2004
@@ -14,7 +14,7 @@
# +----------------------------------------------------------------------+
#
-# $Id: configure.in,v 1.22 2004/07/29 04:37:18 andrei Exp $
+# $Id: configure.in,v 1.23 2004/08/01 03:50:25 andrei Exp $
#
AC_INIT(global.ent)
@@ -164,6 +164,10 @@
then
oldfilepath=$LANGDIR/$xmlfile
xmlfilepath=$UTF8LANG/$xmlfile
+ base=
dirname $xmlfilepath
+ if [ ! test -d $base ]; then
+ mkdir -p $base
+ fi
cp -u $oldfilepath $xmlfilepath
fi
done;;
@@ -181,6 +185,10 @@
if test $oldfilepath -nt $xmlfilepath
then
echo Updating "$xmlfile"...
+ base=dirname $xmlfilepath
+ if [ ! test -d $base ]; then
+ mkdir -p $base
+ fi
(echo "<?xml version='1.0' encoding='utf-8' ?>"; iconv -s
-f $ENCODING -t UTF-8 $oldfilepath | tail +2 ) > $xmlfilepath
updates="$updates $xmlfilepath"
fi