1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

don't call the result files .out but .res as the Makefiles tend to try

* doc/examples/*: don't call the result files .out but .res as
  the Makefiles tend to try generating binaries for .out targets...
Daniel
This commit is contained in:
Daniel Veillard
2003-12-17 15:08:55 +00:00
parent 36a83169c6
commit b286d84b86
14 changed files with 33 additions and 29 deletions

View File

@ -1,13 +1,17 @@
Wed Dec 17 16:07:33 CET 2003 Daniel Veillard <daniel@veillard.com>
* doc/examples/*: don't call the result files .out but .res as
the Makefiles tend to try generating binaries for .out targets...
Tue Dec 16 20:53:54 MST 2003 John Fleck <jfleck@inkstain.net> Tue Dec 16 20:53:54 MST 2003 John Fleck <jfleck@inkstain.net>
* doc/html/libxml-pattern.html - cvs add API docs for new * doc/html/libxml-pattern.html: - cvs add API docs for new
pattern stuff pattern stuff
Tue Dec 16 20:40:40 MST 2003 John Fleck <jfleck@inkstain.net> Tue Dec 16 20:40:40 MST 2003 John Fleck <jfleck@inkstain.net>
* tree.c * tree.c
* doc/* * doc/*:
Elaborate in documentation discussion of xmlNewChild Elaborate in documentation discussion of xmlNewChild
and xmlNewTextChild. Thanks to Steve Lenti for pointing and xmlNewTextChild. Thanks to Steve Lenti for pointing
out the usefulness of a more explicit explanation of the out the usefulness of a more explicit explanation of the

View File

@ -17,9 +17,9 @@ index.html: examples.xml examples.xsl
install-data-local: install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
-@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.out $(DESTDIR)$(TARGET_DIR) -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(TARGET_DIR)
EXTRA_DIST=examples.xsl index.py test1.xml examples.xml test2.xml writer.xml test3.xml tree1.out tree2.out reader1.out reader3.out EXTRA_DIST=examples.xsl index.py test1.xml examples.xml test2.xml writer.xml test3.xml reader1.res reader3.res tree1.res tree2.res writer1.res writer2.res writer3.res writer4.res
noinst_PROGRAMS=xpath1 parse1 parse2 tree1 tree2 testWriter reader1 reader2 reader3 noinst_PROGRAMS=xpath1 parse1 parse2 tree1 tree2 testWriter reader1 reader2 reader3
@ -71,11 +71,11 @@ reader3_LDADD= @RDL_LIBS@ $(LDADDS)
tests: $(noinst_PROGRAMS) tests: $(noinst_PROGRAMS)
@(parse1 test1.xml) @(parse1 test1.xml)
@(parse2 test2.xml) @(parse2 test2.xml)
@(tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.out ; rm tree1.tmp) @(tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp)
@(tree2 > tree2.tmp ; diff tree2.tmp tree2.out ; rm tree2.tmp) @(tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp)
@(testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.out ; done ; rm writer*.out) @(testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res)
@(reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.out ; rm reader1.tmp) @(reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp)
@(reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.out ; rm reader1.tmp) @(reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp)
@(reader3 > reader3.tmp ; diff reader3.tmp reader3.out ; rm reader3.tmp) @(reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp)

View File

@ -82,7 +82,7 @@
<synopsis>Navigates a tree to print element names</synopsis> <synopsis>Navigates a tree to print element names</synopsis>
<purpose>Parse a file to a tree, use xmlDocGetRootElement() to get the root element, then walk the document and print all the element name in document order.</purpose> <purpose>Parse a file to a tree, use xmlDocGetRootElement() to get the root element, then walk the document and print all the element name in document order.</purpose>
<usage>tree1 filename_or_URL</usage> <usage>tree1 filename_or_URL</usage>
<test>tree1 test2.xml &gt; tree1.tmp ; diff tree1.tmp tree1.out ; rm tree1.tmp</test> <test>tree1 test2.xml &gt; tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp</test>
<author>Dodji Seketeli</author> <author>Dodji Seketeli</author>
<copy>see Copyright for the status of this software. </copy> <copy>see Copyright for the status of this software. </copy>
<section>Tree</section> <section>Tree</section>
@ -103,7 +103,7 @@
<synopsis>Creates a tree</synopsis> <synopsis>Creates a tree</synopsis>
<purpose>Shows how to create document, nodes and dump it to stdout or file.</purpose> <purpose>Shows how to create document, nodes and dump it to stdout or file.</purpose>
<usage>tree2 &lt;filename&gt; -Default output: stdout</usage> <usage>tree2 &lt;filename&gt; -Default output: stdout</usage>
<test>tree2 &gt; tree2.tmp ; diff tree2.tmp tree2.out ; rm tree2.tmp</test> <test>tree2 &gt; tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp</test>
<author>Lucas Brasilino &lt;brasilino@recife.pe.gov.br&gt;</author> <author>Lucas Brasilino &lt;brasilino@recife.pe.gov.br&gt;</author>
<copy>see Copyright for the status of this software </copy> <copy>see Copyright for the status of this software </copy>
<section>Tree</section> <section>Tree</section>
@ -130,7 +130,7 @@
<synopsis>use various APIs for the xmlWriter</synopsis> <synopsis>use various APIs for the xmlWriter</synopsis>
<purpose>tests a number of APIs for the xmlWriter, especially the various methods to write to a filename, to a memory buffer, to a new document, or to a subtree. It shows how to do encoding string conversions too. The resulting documents are then serialized.</purpose> <purpose>tests a number of APIs for the xmlWriter, especially the various methods to write to a filename, to a memory buffer, to a new document, or to a subtree. It shows how to do encoding string conversions too. The resulting documents are then serialized.</purpose>
<usage>testWriter</usage> <usage>testWriter</usage>
<test>testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.out ; done ; rm writer*.out</test> <test>testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res</test>
<author>Alfred Mickautsch</author> <author>Alfred Mickautsch</author>
<copy>see Copyright for the status of this software. </copy> <copy>see Copyright for the status of this software. </copy>
<section>xmlWriter</section> <section>xmlWriter</section>
@ -175,7 +175,7 @@
<synopsis>Parse an XML file with an xmlReader</synopsis> <synopsis>Parse an XML file with an xmlReader</synopsis>
<purpose>Demonstrate the use of xmlReaderForFile() to parse an XML file and dump the informations about the nodes found in the process</purpose> <purpose>Demonstrate the use of xmlReaderForFile() to parse an XML file and dump the informations about the nodes found in the process</purpose>
<usage>reader1 &lt;filename&gt;</usage> <usage>reader1 &lt;filename&gt;</usage>
<test>reader1 test2.xml &gt; reader1.tmp ; diff reader1.tmp reader1.out ; rm reader1.tmp</test> <test>reader1 test2.xml &gt; reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp</test>
<author>Daniel Veillard</author> <author>Daniel Veillard</author>
<copy>see Copyright for the status of this software. </copy> <copy>see Copyright for the status of this software. </copy>
<section>xmlReader</section> <section>xmlReader</section>
@ -202,7 +202,7 @@
<synopsis>Parse and validate an XML file with an xmlReader</synopsis> <synopsis>Parse and validate an XML file with an xmlReader</synopsis>
<purpose>Demonstrate the use of xmlReaderForFile() to parse an XML file validating the content in the process and activating options like entities substitution, and DTD attributes defaulting</purpose> <purpose>Demonstrate the use of xmlReaderForFile() to parse an XML file validating the content in the process and activating options like entities substitution, and DTD attributes defaulting</purpose>
<usage>reader2 &lt;valid_xml_filename&gt;</usage> <usage>reader2 &lt;valid_xml_filename&gt;</usage>
<test>reader2 test2.xml &gt; reader1.tmp ; diff reader1.tmp reader1.out ; rm reader1.tmp</test> <test>reader2 test2.xml &gt; reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp</test>
<author>Daniel Veillard</author> <author>Daniel Veillard</author>
<copy>see Copyright for the status of this software. </copy> <copy>see Copyright for the status of this software. </copy>
<section>xmlReader</section> <section>xmlReader</section>
@ -231,7 +231,7 @@
<synopsis>Show how to extract subdocuments with xmlReader</synopsis> <synopsis>Show how to extract subdocuments with xmlReader</synopsis>
<purpose>Demonstrate the use of xmlTextReaderPreservePattern() to parse an XML file with the xmlReader while collecting only some subparts of the document</purpose> <purpose>Demonstrate the use of xmlTextReaderPreservePattern() to parse an XML file with the xmlReader while collecting only some subparts of the document</purpose>
<usage>reader3</usage> <usage>reader3</usage>
<test>reader3 &gt; reader3.tmp ; diff reader3.tmp reader3.out ; rm reader3.tmp</test> <test>reader3 &gt; reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp</test>
<author>Daniel Veillard</author> <author>Daniel Veillard</author>
<copy>see Copyright for the status of this software. </copy> <copy>see Copyright for the status of this software. </copy>
<section>xmlReader</section> <section>xmlReader</section>

View File

@ -216,7 +216,7 @@ def dump_sections(output):
def dump_Makefile(): def dump_Makefile():
for file in glob.glob('*.xml'): for file in glob.glob('*.xml'):
extras.append(file) extras.append(file)
for file in glob.glob('*.out'): for file in glob.glob('*.res'):
extras.append(file) extras.append(file)
Makefile="""# Beware this is autogenerated by index.py Makefile="""# Beware this is autogenerated by index.py
HTML_DIR=$(datadir)/doc HTML_DIR=$(datadir)/doc
@ -237,7 +237,7 @@ index.html: examples.xml examples.xsl
install-data-local: install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
-@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.out $(DESTDIR)$(TARGET_DIR) -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(TARGET_DIR)
""" """
EXTRA_DIST="" EXTRA_DIST=""

View File

@ -4,7 +4,7 @@
* purpose: Demonstrate the use of xmlReaderForFile() to parse an XML file * purpose: Demonstrate the use of xmlReaderForFile() to parse an XML file
* and dump the informations about the nodes found in the process * and dump the informations about the nodes found in the process
* usage: reader1 <filename> * usage: reader1 <filename>
* test: reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.out ; rm reader1.tmp * test: reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp
* author: Daniel Veillard * author: Daniel Veillard
* copy: see Copyright for the status of this software. * copy: see Copyright for the status of this software.
*/ */

View File

@ -5,7 +5,7 @@
* validating the content in the process and activating options * validating the content in the process and activating options
* like entities substitution, and DTD attributes defaulting * like entities substitution, and DTD attributes defaulting
* usage: reader2 <valid_xml_filename> * usage: reader2 <valid_xml_filename>
* test: reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.out ; rm reader1.tmp * test: reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp
* author: Daniel Veillard * author: Daniel Veillard
* copy: see Copyright for the status of this software. * copy: see Copyright for the status of this software.
*/ */

View File

@ -5,7 +5,7 @@
* to parse an XML file with the xmlReader while collecting * to parse an XML file with the xmlReader while collecting
* only some subparts of the document * only some subparts of the document
* usage: reader3 * usage: reader3
* test: reader3 > reader3.tmp ; diff reader3.tmp reader3.out ; rm reader3.tmp * test: reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp
* author: Daniel Veillard * author: Daniel Veillard
* copy: see Copyright for the status of this software. * copy: see Copyright for the status of this software.
*/ */

View File

@ -7,7 +7,7 @@
* do encoding string conversions too. The resulting * do encoding string conversions too. The resulting
* documents are then serialized. * documents are then serialized.
* usage: testWriter * usage: testWriter
* test: testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.out ; done ; rm writer*.out * test: testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res
* author: Alfred Mickautsch * author: Alfred Mickautsch
* copy: see Copyright for the status of this software. * copy: see Copyright for the status of this software.
*/ */
@ -28,16 +28,16 @@ int
main(void) main(void)
{ {
/* first, the file version */ /* first, the file version */
testXmlwriterFilename("writer1.out"); testXmlwriterFilename("writer1.res");
/* next, the memory version */ /* next, the memory version */
testXmlwriterMemory("writer2.out"); testXmlwriterMemory("writer2.res");
/* next, the DOM version */ /* next, the DOM version */
testXmlwriterDoc("writer3.out"); testXmlwriterDoc("writer3.res");
/* next, the tree version */ /* next, the tree version */
testXmlwriterTree("writer4.out"); testXmlwriterTree("writer4.res");
return 0; return 0;
} }

View File

@ -5,7 +5,7 @@
* get the root element, then walk the document and print * get the root element, then walk the document and print
* all the element name in document order. * all the element name in document order.
* usage: tree1 filename_or_URL * usage: tree1 filename_or_URL
* test: tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.out ; rm tree1.tmp * test: tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp
* author: Dodji Seketeli * author: Dodji Seketeli
* copy: see Copyright for the status of this software. * copy: see Copyright for the status of this software.
*/ */

View File

@ -3,7 +3,7 @@
* synopsis: Creates a tree * synopsis: Creates a tree
* purpose: Shows how to create document, nodes and dump it to stdout or file. * purpose: Shows how to create document, nodes and dump it to stdout or file.
* usage: tree2 <filename> -Default output: stdout * usage: tree2 <filename> -Default output: stdout
* test: tree2 > tree2.tmp ; diff tree2.tmp tree2.out ; rm tree2.tmp * test: tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp
* author: Lucas Brasilino <brasilino@recife.pe.gov.br> * author: Lucas Brasilino <brasilino@recife.pe.gov.br>
* copy: see Copyright for the status of this software * copy: see Copyright for the status of this software
*/ */