peardoc/configure.in question

From: Date: Sun, 06 Feb 2005 11:14:27 +0000
Subject: peardoc/configure.in question
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5512@lists.php.net to get a copy of this message
Hello pear-doc, Can anybody explain me the role of DEPEND_FILES for translation in last section of configure.in and in Makefile ? I patched configure.in a bit again to increase perfomance on cygwin, but I can't see how this DEPEND_FILES may be useful. See the patch in attach. Original section code is below: --[cut]-----------------------------------------------[configure.in] ... dnl check for files and translations, create chapter entities echo creating chapters.ent DEPEND_FILES="" rm -f chapters.ent echo "<!-- DON'T TOUCH - AUTOGENERATED BY ./configure -->" > chapters.ent for file in find $srcdir/en -name "*.xml" | cut -d '/' -f 3- | sort do name=echo $file | tr '/_' '.-' | sed -e"s/.xml$//g" if test -f $srcdir/$LANGDIR/$file then file=$srcdir/$LANGDIR/$file else file=$srcdir/en/$file echo " untranslated $file (wc -l <$file | tr -d ' ' lines)" fi DEPEND_FILES="$DEPEND_FILES $file" echo "<!ENTITY $name SYSTEM \"$file\">" >> chapters.ent done chmod a-w chapters.ent --[cut]------------------------------------------------------------- P.S. Attached patch also includes additional path to look for dsssl stylesheets in phpdoc/ checkout. -- anatoly

--- configure_old.in 2005-02-06 13:11:30.000000000 +0200 +++ configure.in 2005-02-06 13:09:28.000000000 +0200 @@ -101,6 +101,7 @@ /usr/local/lib/sgml/stylesheets/nwalsh-modular \ /usr/local/lib/sgml/docbook \ /usr/local/share/sgml/docbook/dsssl/modular \ + ../phpdoc/dsssl/docbook \ ../phpdoc-tools/dsssl/docbook \ ../phpdoc-tools/dsssl \ phpdoc-tools/dsssl/docbook \ @@ -391,15 +392,18 @@ echo "<!-- DON'T TOUCH - AUTOGENERATED BY ./configure -->" > chapters.ent for file in `find $srcdir/en -name "*.xml" | cut -d '/' -f 3- | sort` do - name=`echo $file | tr '/_' '.-' | sed -e"s/.xml$//g"` - if test -f $srcdir/$LANGDIR/$file + name=`echo $file | sed -e"s/.xml$//g" -e"y/\/_/.-/"` + if test "$LANGDIR" != "en" then - file=$srcdir/$LANGDIR/$file - else - file=$srcdir/en/$file - echo " untranslated $file (`wc -l <$file | tr -d ' '` lines)" - fi - DEPEND_FILES="$DEPEND_FILES $file" + if test -f $srcdir/$LANGDIR/$file + then + file=$srcdir/$LANGDIR/$file + else + file=$srcdir/en/$file + echo " untranslated $file (`wc -l <$file | tr -d ' '` lines)" + fi + DEPEND_FILES="$DEPEND_FILES $file" + fi echo "<!ENTITY $name SYSTEM \"$file\">" >> chapters.ent done chmod a-w chapters.ent
« previous php.pear.doc (#5512) next »