cvs: php-gtk-doc / Makefile.in QandA configure.in testclasses.xml.in testmanual.xml.in

From: Date: Wed, 21 Jul 2004 10:25:50 +0000
Subject: cvs: php-gtk-doc / Makefile.in QandA configure.in testclasses.xml.in testmanual.xml.in
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-900@lists.php.net to get a copy of this message
cweiske Wed Jul 21 06:25:50 2004 EDT Added files: /php-gtk-doc testmanual.xml.in testclasses.xml.in Modified files: /php-gtk-doc configure.in Makefile.in QandA Log: You can now do a "make test" to compile only this classes which have been changed since the last ./configure - not as fast as livedocs, but no need to compile the whole manual any more! http://cvs.php.net/diff.php/php-gtk-doc/configure.in?r1=1.19&r2=1.20&ty=u Index: php-gtk-doc/configure.in diff -u php-gtk-doc/configure.in:1.19 php-gtk-doc/configure.in:1.20 --- php-gtk-doc/configure.in:1.19 Sun Jul 18 13:24:42 2004 +++ php-gtk-doc/configure.in Wed Jul 21 06:25:50 2004 @@ -14,7 +14,7 @@ # +----------------------------------------------------------------------+ # -# $Id: configure.in,v 1.19 2004/07/18 17:24:42 cweiske Exp $ +# $Id: configure.in,v 1.20 2004/07/21 10:25:50 cweiske Exp $ # AC_INIT(global.ent) @@ -182,6 +182,7 @@ then echo Updating "$xmlfile"... (echo "<?xml version='1.0' encoding='utf-8' ?>"; iconv -s -f $ENCODING -t UTF-8 $oldfilepath | tail +2 ) > $xmlfilepath + updates="$updates $xmlfilepath" fi fi done;; @@ -190,6 +191,7 @@ AC_OUTPUT(\ Makefile \ manual.xml \ +testmanual.xml \ stylesheets/html/phpweb.xsl \ scripts/genchapterents.php ) @@ -197,5 +199,19 @@ $PHP -q scripts/genchapterents.php > chapters.ent echo creating name_to_id.xsl $XSLTPROC gen_name_to_id.xsl manual.xml > stylesheets/html/name_to_id.xsl + + +#now add the list of updated files to the testclasses.xml +# this has to be done after chapters.ent is created +echo creating testclasses.xml +for updatedfile in $updates +do + updatedfile=echo $updatedfile | sed -e "s/^.\///" + ref=grep -e "$updatedfile" chapters.ent | sed "s/^<!ENTITY //" | sed "s/ .*//" + #FIXME: check if $ref is empty + refs="$refs \&$ref;" +done +#can't I do 2x AC_OUTPUT? +sed "s/@TEST_REFERENCES@/$refs/g" testclasses.xml.in > testclasses.xml chmod +x scripts/genchapterents.php http://cvs.php.net/diff.php/php-gtk-doc/Makefile.in?r1=1.15&r2=1.16&ty=u Index: php-gtk-doc/Makefile.in diff -u php-gtk-doc/Makefile.in:1.15 php-gtk-doc/Makefile.in:1.16 --- php-gtk-doc/Makefile.in:1.15 Fri May 2 12:56:12 2003 +++ php-gtk-doc/Makefile.in Wed Jul 21 06:25:50 2004 @@ -14,7 +14,7 @@ # +----------------------------------------------------------------------+ # -# $Id: Makefile.in,v 1.15 2003/05/02 16:56:12 sfox Exp $ +# $Id: Makefile.in,v 1.16 2004/07/21 10:25:50 cweiske Exp $ # # @@ -23,6 +23,7 @@ STYLESHEET_DIR = @STYLESHEET_DIR@ BUILD = build/@LANG@ BUILD_SEARCHABLE = htdocs +BUILD_TEST = testbuild # # Programs @@ -44,6 +45,7 @@ searchable_zip: $(BUILD)/searchable_manual_$(LANG).zip searchable_tar: $(BUILD)/searchable_manual_$(LANG).tar.gz text: $(BUILD)/manual.txt +test: $(BUILD_TEST)/index.html mirror-files: $(BUILD)/php_gtk_manual_$(LANG).tar.gz \ $(BUILD)/php_gtk_manual_$(LANG).tar.bz2 \ @@ -98,6 +100,11 @@ $(BUILD)/php_gtk_manual_$(LANG).txt.gz: $(BUILD)/manual.txt @mkdir -p $(BUILD) gzip -c -9 $< > $@ + +$(BUILD_TEST)/index.html: testmanual.xml + @mkdir -p $(BUILD_TEST) + $(XSLTPROC) --param base.dir "'$(BUILD_TEST)/'" $(chunk) testmanual.xml + # # The 'searchable' builds should only ever be created LOCALLY!!! http://cvs.php.net/diff.php/php-gtk-doc/QandA?r1=1.1&r2=1.2&ty=u Index: php-gtk-doc/QandA diff -u php-gtk-doc/QandA:1.1 php-gtk-doc/QandA:1.2 --- php-gtk-doc/QandA:1.1 Sun Jul 18 16:34:04 2004 +++ php-gtk-doc/QandA Wed Jul 21 06:25:50 2004 @@ -16,11 +16,11 @@ - searchable_tar - text - mirror-files + - test Q: I just want to compile one small file... how to stop compiling _all_? -A: There is now real solution... it seems that the *whole* manual has to be compiled - - deleting just some output files doesn't help - - removing the html directory in build/en/ causes _all_ files to be rebuilt... +A: Do a "./configure" and then "make test". This will compile the docs for the classes + which were changed since the last "./configure" in the "testbuild/" directory Q: For what is UTF8-dir? A: All the xml files are converted to utf-8 when doing a ./configure and saved under the http://cvs.php.net/co.php/php-gtk-doc/testmanual.xml.in?r=1.1&p=1 Index: php-gtk-doc/testmanual.xml.in +++ php-gtk-doc/testmanual.xml.in <?xml version='1.0' encoding='utf-8' ?> <!DOCTYPE book PUBLIC "@DOCBOOK_DOCTYPE@" "@srcdir@/dbxml/phpgtkdoc.dtd"[ <!-- Defaults for entities that should be defined in language-defs --> <!ENTITY % language-defs SYSTEM "@UTF8LANG@/language-defs.ent"> %language-defs; <!-- These are language independent --> <!ENTITY phpgtk.build-date "@PHP_GTK_DOC_BUILD_DATE@"> <!ENTITY % global.entities SYSTEM "global.ent"> <!ENTITY % global.chapters SYSTEM "chapters.ent"> %global.entities; %global.chapters; <!ENTITY userguide SYSTEM "userguide.xml"> <!ENTITY testclasses SYSTEM "testclasses.xml"> ]> <set id="phpgtk.docs" lang="@LANG@"> &testclasses; </set> http://cvs.php.net/co.php/php-gtk-doc/testclasses.xml.in?r=1.1&p=1 Index: php-gtk-doc/testclasses.xml.in +++ php-gtk-doc/testclasses.xml.in <?xml version="1.0" encoding='utf-8' ?> <book id="userguide"> <title>Test classes</title> <classset id="testclasslist"> <title>Classes to test</title> <partintro>This is a list of classes which have recently been changed</partintro> @TEST_REFERENCES@ </classset> </book>

« previous php.gtk.doc (#900) next »