History log of /external/libxml2/doc/examples/index.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e00778b492030d3778011e68e6cd024c9c601a0f 08-Sep-2012 Daniel Veillard <veillard@redhat.com> Followup to LibXML2 docs/examples cleanup patch
/external/libxml2/doc/examples/index.py
878ec9db9df09b22322906bc5fc61537391070e4 07-Sep-2012 Daniel Richard <oss@teragram.com> Second round of cleanups for LibXML2 docs/examples

configure.am:

* Explicitly disallow --enable-rebuild-docs when builddir != srcdir, per
what you said about needing to build docs with an in-source build

doc/Makefile.am:

* Ensure that xmlversion.h is in the source tree before running
apibuild.py, to avoid generating an incomplete libxml2-api.xml

* Update the .PHONY target (forgot to do this earlier)

doc/devhelp/Makefile.am:

* Wrap the doc-generating rule in an "if REBUILD_DOCS" conditional so it
doesn't cause trouble for regular users

* Added a handy-dandy "rebuild" target

doc/examples/index.py:

* NOTE: You need to run this script to regenerate the files it creates,
and then commit the newly-updated files! The generated files currently
in git master (e.g. doc/examples/Makefile.am) are out of date even
before this patch!

* index.html really needs to be in EXTRA_DIST

* Wrap the doc-generating rules in an "if REBUILD_DOCS" conditional,
because they shouldn't be active otherwise
/external/libxml2/doc/examples/index.py
6842ee810e8ab60fa71d1569bbc91cc392d12a7c 17-Aug-2012 Daniel Richard G <oss@teragram.com> More cleanups to the documentation part of libxml2

doc/Makefile.am:

* Build what's in doc/ before doc/devhelp/, as the dependency graph flows
that way

* Add "--path $(srcdir)" so that xsltproc can find DTDs in srcdir

* Replaced $(top_srcdir)/doc with an equivalent $(srcdir)

* Qualified libxml2-api.xml with $(srcdir) as it's always generated there

* Rewrote the dependencies for libxml2-api.xml so that xmlversion.h
doesn't throw everything off

doc/devhelp/Makefile.am:

* Use Automake constructs to install the HTML files instead of an
install-data-local rule

* Reorganized the file a bit (hello whitespace!)

* EXTRA_DIST doesn't need to list so many files now that dist_devhelp_DATA
is being used

* Only print "Rebuilding devhelp files" if rebuilding is actually
occurring

doc/examples/index.py:

* Make the "this file is auto-generated" banner more prominent

* Autotools updates: Use AM_CPPFLAGS/AM_CFLAGS instead of INCLUDES

* Got rid of DEPS as it's not needed (Automake already sees the dependency
on libxml2.la by way of LDADD(S))

* Replaced LDADDS with LDADD, which is applied to all programs listed
in the file. Since all the test programs have the same link
dependencies, this way is more concise yet equivalent.

* Remove the *.tmp files via "make clean" instead of having the test
programs do it themselves (more on this later)

* Invoke index.py in srcdir, as it pretty much needs to run there

* Restructured the index.html rule so that only the xmllint invocation is
allowed to fail

* Use $(MKDIR_P) instead of $(mkinstalldirs), $(VAR) instead of @VAR@

* Remove symlinks for test?.xml in an out-of-source build

* Sort lists for neatness

* Better formatting for EXTRA_DIST and noinst_PROGRAMS variables

* Simplified the Automake bits printed for each program: *_LDFLAGS doesn't
need to be specified as it's empty anyway, *_DEPENDENCIES is redundant,
*_LDADD isn't needed due to the global LDADD

* Added a bit that symlinks in test?.xml from srcdir in out-of-source
builds. This allows the reader4 test to read these files in the current
directory, which ensures that the output always looks the same (i.e.
does not contain references to srcdir)

* Don't hide the test program invocation (or else it's hard to tell which
test failed), and don't use superfluous parentheses

* NOTE: If you check in these changes, be sure to run this script and also
check in the updated files that it generates!

doc/examples/*.c:

* Updated the test: lines so that

+ "&&" is used to separate commands instead of ";" so that errors are
not masked

+ reference files are qualified with $(srcdir)/

+ no "rm" takes place -- these are a problem because (1) if a test
fails, it's useful to have the output file ready for inspection; (2)
the "rm" invocation masks a potential non-zero exit status from diff

(This is why I added the CLEANFILES line above)

doc/examples/io1.res:

* Updated this ref file so that the test passes. (This is correct, right?)

doc/examples/reader4.res:

* Changed this back to its original form, as the symlinking of test?.xml
means this file no longer has to contain path prefixes on the filenames

doc/examples/testWriter.c:

* Changed the output filenames to *.tmp instead of *.res, partly for
consistency, partly to not have to add special cases to CLEANFILES

doc/examples/xpath1.c:

* Removed the "./" prefix on the test invocation, which is redundant as
index.py already adds one
/external/libxml2/doc/examples/index.py
5706b6d8767e3c3f2e5b277b54e1af68035bc111 06-Aug-2012 Daniel Richard G <oss@teragram.com> Various "make distcheck" and portability fixups

Makefile.am:

* Don't use @VAR@, use $(VAR). Autoconf's AC_SUBST provides us the Make
variable, it allows overriding the value at the command line, and
(notably) it avoids a Make parse error in the libxml2_la_LDFLAGS
assignment when @MODULE_PLATFORM_LIBS@ is empty

* Changed how the THREADS_W32 mechanism switches the build between
testThreads.c and testThreadsWin32.c as appropriate; using AM_CONDITIONAL
allows this to work cleanly and plays well with dependencies

* testapi.c should be specified as BUILT_SOURCES

* Create symlinks to the test/ and result/ subdirs so that the runtests
target is usable in out-of-source-tree builds

* Don't do MAKEFLAGS+=--silent as this is not portable to non-GNU Makes

* Fixed incorrect find(1) syntax in the "cleanup" rule, and doing "rm -f"
instead of just "rm" is good form

* (DIST)CLEANFILES needed a bit more coverage to allow "make distcheck" to
pass

configure.in:

* Need AC_PROG_LN_S to create test/ and result/ symlinks in Makefile.am

* AC_LIBTOOL_WIN32_DLL and AM_PROG_LIBTOOL are obsolete; these have been
superceded by LT_INIT

* Don't rebuild docs by default, as this requires GNU Make (as
implemented)

* Check for uint32_t as some platforms don't provide it

* Check for some more functions, and undefine HAVE_MMAP if we don't also
HAVE_MUNMAP (one system I tested on actually needed this)

* Changed THREADS_W32 from a filename insert into an Automake conditional

* The "Copyright" file will not be in the current directory if builddir !=
srcdir

doc/Makefile.am:

* EXTRA_DIST cannot use wildcards when they refer to generated files; this
breaks dependencies. What I did was define EXTRA_DIST_wc, which uses GNU
Make $(wildcard) directives to build up a list of files, and EXTRA_DIST,
as a literal expansion of EXTRA_DIST_wc. I also added a new rule,
"check-extra-dist", to simplify checking that the two variables are
equivalent. (Note that this works only when builddir == srcdir)

(I can implement this differently if desired; this is just one way of
doing it)

* Don't define an "all" target; this steps on Automake's toes

* Fixed up the "libxml2-api.xml ..." rule by using $(wildcard) for
dependencies (as Make doesn't process the wildcards otherwise) and
qualifying appropriate files with $(srcdir)

(Note that $(srcdir) is not needed in the dependencies, thanks to VPATH,
which we can count on as this is GNU-Make-only code anyway)

doc/devhelp/Makefile.am:

* Qualified appropriate files with $(srcdir)

* Added an "uninstall-local" rule so that "make distcheck" passes

doc/examples/Makefile.am:

* Rather than use a wildcard that doesn't work, use a substitution that
most Make programs can handle

doc/examples/index.py:

* Do the same here

include/libxml/nanoftp.h:

* Some platforms (e.g. MSVC 6) already #define INVALID_SOCKET:

user@host:/cygdrive/c/Program Files/Microsoft Visual Studio/VC98/\
Include$ grep -R INVALID_SOCKET .
./WINSOCK.H:#define INVALID_SOCKET (SOCKET)(~0)
./WINSOCK2.H:#define INVALID_SOCKET (SOCKET)(~0)

include/libxml/xmlversion.h.in:

* Support ancient GCCs (I was actually able to build the library with 2.5
but for this bit)

python/Makefile.am:

* Expanded CLEANFILES to allow "make distcheck" to pass

python/tests/Makefile.am:

* Define CLEANFILES instead of a "clean" rule, and added tmp.xml to allow
"make distcheck" to pass

testRelax.c:

* Use HAVE_MMAP instead of the less explicit HAVE_SYS_MMAN_H (as some
systems have the header but not the function)

testSchemas.c:

* Use HAVE_MMAP instead of the less explicit HAVE_SYS_MMAN_H

testapi.c:

* Don't use putenv() if it's not available

threads.c:

* This fixes the following build error on Solaris 8:

libtool: compile: cc -DHAVE_CONFIG_H -I. -I./include -I./include \
-D_REENTRANT -D__EXTENSIONS__ -D_REENTRANT -Dsparc -Xa -mt -v \
-xarch=v9 -xcrossfile -xO5 -c threads.c -KPIC -DPIC -o threads.o
"threads.c", line 442: controlling expressions must have scalar type
"threads.c", line 512: controlling expressions must have scalar type
cc: acomp failed for threads.c
*** Error code 1

trio.c:

* Define isascii() if the system doesn't provide it

trio.h:

* The trio library's HAVE_CONFIG_H header is not the same as LibXML2's
HAVE_CONFIG_H header; this change is needed to avoid a double-inclusion

win32/configure.js:

* Added support for the LZMA compression option

win32/Makefile.{bcb,mingw,msvc}:

* Added appropriate bits to support WITH_LZMA=1

* Install the header files under $(INCPREFIX)\libxml2\libxml instead of
$(INCPREFIX)\libxml, to mirror the install location on Unix+Autotools

xml2-config.in:

* @MODULE_PLATFORM_LIBS@ (usually "-ldl") needs to be in there in order for
`xml2-config --libs` to provide a complete set of dependencies

xmllint.c:

* Use HAVE_MMAP instead of the less-explicit HAVE_SYS_MMAN_H
/external/libxml2/doc/examples/index.py
25c90c589b256f0925f081198c1525134a491e31 02-Mar-2005 Daniel Veillard <veillard@src.gnome.org> try to fix a problem with valgrind. applied memory leak fix from Brent

* Makefile.am doc/examples/Makefile.am python/tests/Makefile.am
xstc/Makefile.am: try to fix a problem with valgrind.
* python/generator.py python/libxml.c python/tests/Makefile.am
python/tests/tstmem.py: applied memory leak fix from Brent Hendricks
c.f. bug #165349
Daniel
/external/libxml2/doc/examples/index.py
cb40c222a4f92fb4519ec571547f2b8fcbe6a4ed 03-Oct-2004 William M. Brack <wbrack@src.gnome.org> changed changed sys.path setting from 'append' to 'insert' (patch supplied

* check-relaxng-test-suite.py, check-relaxng-test-suite2.py,
check-xinclude-test-suite.py, check-xml-test-suite.py,
check-xsddata-test-suite.py, doc/examples/index.py: changed
changed sys.path setting from 'append' to 'insert' (patch
supplied by Malcolm Tredinnick) (bug 153716)
/external/libxml2/doc/examples/index.py
eb70f93ffaaf94163098f025ac146e4d8278ce92 05-Jul-2004 Daniel Veillard <veillard@src.gnome.org> make the push interfaces synchronous added a specific test added the new

* parser.c: make the push interfaces synchronous
* python/tests/sync.py: added a specific test
* python/tests/Makefile.am doc/examples/Makefile.am
doc/examples/index.py: added the new test, cleaning up
"make tests" output
Daniel
/external/libxml2/doc/examples/index.py
b5eb714320991007113ad561db092f4f612cc849 26-Mar-2004 Daniel Veillard <veillard@src.gnome.org> added a test template added a new example, and make valgrind target Daniel

* doc/examples/xpath1.c: added a test template
* doc/examples/xpath2.c doc/examples/xpath2.res doc/examples/*:
added a new example, and make valgrind target
Daniel
/external/libxml2/doc/examples/index.py
fc97906edfc501278820fdcd3fc05efcbded1538 04-Mar-2004 Daniel Veillard <veillard@src.gnome.org> paalied patch from Julio M. Merino Vidal fixing bug #134751 to fix

* configure.in doc/Makefile.am include/libxml/Makefile.am:
paalied patch from Julio M. Merino Vidal fixing bug #134751
to fix --with-html-dir option.
* doc/*: rebuilt fully the docs
* doc/html/libxml-xmlsave.html: new file from new header.
Daniel
/external/libxml2/doc/examples/index.py
c3a429aac89f3752d979dfb5c4f7d46234292bc7 26-Jan-2004 Daniel Veillard <veillard@src.gnome.org> don't rely on . being on the path for make tests, should keep Mr. Crozat

* doc/examples/index.py: don't rely on . being on the path for
make tests, should keep Mr. Crozat quiet until next time...
Daniel
/external/libxml2/doc/examples/index.py
4773df2a58be83e1b9b1b55840371acf37386820 23-Jan-2004 Daniel Veillard <veillard@src.gnome.org> added io1.c an example ox xmlIO usage and io1.res test result, fixed a

* doc/examples/*: added io1.c an example ox xmlIO usage and io1.res
test result, fixed a awful lot of memory leaks showing up in
testWriter.c, changed the examples and the Makefiles to test
memory leaks.
* xmlwriter.c: fixed a memory leak
* Makefile.am: run the doc/examples regression tests as part of
make tests
* xpath.c include/libxml/xpath.h: added xmlXPathCtxtCompile() to
compile an XPath expression within a context, currently the goal
is to be able to reuse the XSLT stylesheet dictionnary, but this
opens the door to others possible optimizations.
* dict.c include/libxml/dict.h: added xmlDictCreateSub() which allows
to build a new dictionnary based on another read-only dictionnary.
This is needed for XSLT to keep the stylesheet dictionnary read-only
while being able to reuse the strings for the transformation
dictionnary.
* xinclude.c: fixed a dictionnar reference counting problem occuring
when document parsing failed.
* testSAX.c: adding option --repeat for timing 100times the parsing
* doc/* : rebuilt all the docs
Daniel
/external/libxml2/doc/examples/index.py
7ecced58c1a168f40d0d4662de9aa74ab7955dc8 18-Dec-2003 Daniel Veillard <veillard@src.gnome.org> base64Binary is supported now, Daniel
/external/libxml2/doc/examples/index.py
b286d84b86ab85abb46a54f38e94de77c4db401c 17-Dec-2003 Daniel Veillard <veillard@src.gnome.org> 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
/external/libxml2/doc/examples/index.py
f2a1283564df8ded1942b231c60c3a7ae4ff748a 24-Nov-2003 Daniel Veillard <veillard@src.gnome.org> more XML Schemas fixes based on Eric van der Vlist examples added

* xmlregexp.c xmlschemas.c: more XML Schemas fixes based
on Eric van der Vlist examples
* result/schemas/vdv-first4* test/schemas/vdv-first4*:
added regression tests
* doc/examples/Makefile.am doc/examples/index.py: do not
regenerate the index on make all target, but only on
make rebuild to avoid troubles.
Daniel
/external/libxml2/doc/examples/index.py
16ed597a93739ff63d5b26c97978b3696511a8e0 20-Nov-2003 Daniel Veillard <veillard@src.gnome.org> added two xmlReader examples cleaned up some bugs in the process Daniel

* doc/examples/*: added two xmlReader examples
* xmlreader.c: cleaned up some bugs in the process
Daniel
/external/libxml2/doc/examples/index.py
8d7b5c7ecdebc775257495bcdaa855916f2dfbb0 15-Nov-2003 Daniel Veillard <veillard@src.gnome.org> fixed some wording make sure doc/examples is packaged fixed the really

* Copyright: fixed some wording
* libxml.spec.in: make sure doc/examples is packaged
* include/libxml/tree.h valid.c xmlreader.c: fixed the really
annoying problem about xmlRemoveID and xmlReader streaming.
Thing looks fixed now, add to add a doc reference to the
xmlID structure though...
Daniel
/external/libxml2/doc/examples/index.py
d9d63d6e53cdc0a5420c3eccbdbc99c236168d7f 13-Nov-2003 Daniel Veillard <veillard@src.gnome.org> added Dodji's example, added output handling Daniel

* doc/examples/*: added Dodji's example, added output handling
Daniel
/external/libxml2/doc/examples/index.py
241e19d4afea87d71e761803877ba9371d70d816 13-Nov-2003 Daniel Veillard <veillard@src.gnome.org> added Aleksey XPath example, fixed bugs in the indexer Daniel

* doc/examples/*: added Aleksey XPath example, fixed bugs
in the indexer
Daniel
/external/libxml2/doc/examples/index.py
a59853a3cc72623b6a09fa6f6d974e0c4f92a8f4 12-Nov-2003 Daniel Veillard <veillard@src.gnome.org> integrating the examples in the navigation menus added make tests, updated

* doc/*: integrating the examples in the navigation menus
* doc/examples/*: added make tests, updated the navigation,
added a new test, cleanups, updates.
Daniel
/external/libxml2/doc/examples/index.py
8c03401bdae80eb04b613cebd931e6365abf3275 12-Nov-2003 Daniel Veillard <veillard@src.gnome.org> rebuilt the generated HTML pages updated the stylesheets, added a

* doc/*.html: rebuilt the generated HTML pages
* doc/examples/*: updated the stylesheets, added a synopsis,
Makefile.am is now generated by index.py
Daniel
/external/libxml2/doc/examples/index.py
b72876d2625a6d1076324733ca52c2605ce76502 12-Nov-2003 Daniel Veillard <veillard@src.gnome.org> added autogeneration of a web page for the examples updated the

* doc/site.xsl doc/examples/Makefile.am doc/examples/index.html:
added autogeneration of a web page for the examples
* doc/examples/example1.c doc/examples/.cvsignore
doc/examples/examples.xml doc/examples/index.py: updated the
informations extracted, improved the format and indexing.
Daniel
/external/libxml2/doc/examples/index.py
d8cf90610c63a695d948245cc4e22890e2c063be 11-Nov-2003 Daniel Veillard <veillard@src.gnome.org> less verbose on difference cleanup fixed xmlCleanupParser() doc work on

* check-xinclude-test-suite.py: less verbose on difference
* libxml.spec.in: cleanup
* parser.c: fixed xmlCleanupParser() doc
* doc/Makefile.am doc/apibuild.py doc/libxml2-api.xml
doc/examples/Makefile.am doc/examples/example1.c
doc/examples/examples.xml doc/examples/index.py
doc/examples/test1.xml: work on adding C examples and
generating automated information about those. examples.xml
is autogenerated describing the examples.
* example/Makefile.am: cleanup
Daniel
/external/libxml2/doc/examples/index.py