hholzgra Sat Feb 2 13:57:58 2002 EDT
Modified files:
/phpdoc configure.in
/phpdoc/scripts missing-entities.sh.in
Log:
re-ordering of output file generation, .in files have to be first
some small improvements to missing entity detection
Index: phpdoc/configure.in
diff -u phpdoc/configure.in:1.127 phpdoc/configure.in:1.128
--- phpdoc/configure.in:1.127 Sat Feb 2 09:35:12 2002
+++ phpdoc/configure.in Sat Feb 2 13:57:57 2002
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.127 2002/02/02 14:35:12 hholzgra Exp $
+dnl $Id: configure.in,v 1.128 2002/02/02 18:57:57 hholzgra Exp $
dnl autoconf initialisation
AC_INIT()
@@ -179,7 +179,7 @@
dnl fi
-if grep -q methodsynopsis en/functions/array.xml; then
+if grep -q methodsynopsis $srcdir/en/functions/array.xml; then
DOCBOOK_DOCTYPE="-//OASIS//DTD DocBook XML V4.1.2//EN"
DOCBOOK_VERSION="4.1.2"
else
@@ -632,14 +632,27 @@
dnl {{{ generate output files
+dnl {{{ find all *.in files and process them with AC_OUTPUT
+for infile in `find $srcdir -name "*.in"`
+do
+ if test `basename $infile` != "configure.in"
+ then
+ outfile=`basename $infile .in`
+ outdir=`dirname $infile`
+ outdir=`echo $outdir/ | sed -e"s|$srcdir/||"`
+ OUTFILES="$OUTFILES ./$outdir$outfile"
+ fi
+done
+AC_OUTPUT($OUTFILES)
+find . -name "*.sh" | xargs chmod u+x
+dnl }}}
-dnl {{{ generate additional entity file for translation support
+dnl {{{ generate entity mapping file for translation support
dnl check for files and translations, create chapter entities
echo creating entities/chapters.ent
-DEPEND_FILES=""
-mkdir -p entities
rm -f entities/chapters.ent
+DEPEND_FILES=""
echo "<!-- DON'T TOUCH - AUTOGENERATED BY ./configure -->" > entities/chapters.ent
if test -d "$ZENDAPI"; then
echo >> entities/chapters.ent
@@ -671,27 +684,15 @@
chmod a-w entities/chapters.ent
-dnl check for missing IDs and ENTITYs in translation
+dnl }}}
+
+dnl {{{ check for missing IDs and ENTITYs in translation
+
echo creating entities/missing-entities.ent and entities/missing-ids.xml
rm -f entities/missing*
chmod u+x scripts/missing-entities.sh
scripts/missing-entities.sh
-dnl }}}
-
-dnl {{{ find all *.in files and process them
-for infile in `find $srcdir -name "*.in"`
-do
- if test `basename $infile` != "configure.in"
- then
- outfile=`basename $infile .in`
- outdir=`dirname $infile`
- outdir=`echo $outdir/ | sed -e"s|$srcdir/||"`
- OUTFILES="$OUTFILES ./$outdir$outfile"
- fi
-done
-AC_OUTPUT($OUTFILES)
-find . -name "*.sh" | xargs chmod u+x
dnl }}}
dnl }}}
Index: phpdoc/scripts/missing-entities.sh.in
diff -u phpdoc/scripts/missing-entities.sh.in:1.3
phpdoc/scripts/missing-entities.sh.in:1.4
--- phpdoc/scripts/missing-entities.sh.in:1.3 Sat Feb 2 09:53:22 2002
+++ phpdoc/scripts/missing-entities.sh.in Sat Feb 2 13:57:57 2002
@@ -1,7 +1,7 @@
#!/bin/sh
# generate files containing missing entities
-srcdir="@srcdir@"
+srcdir="@SRCDIR@"
NSGMLS="@NSGMLS@"
LANG="@LANG@ -D ."
XMLDCL="$srcdir/dtds/dbxml-@DOCBOOK_VERSION@/phpdocxml.dcl"