Commit Graph

383 Commits

Author SHA1 Message Date
Martin A. Brown 6ec7e84c2d remove reference to mtime functions 2016-04-02 11:58:56 -07:00
Martin A. Brown 0b8ae435f8 correct the justification of the text 2016-04-02 11:58:35 -07:00
Martin A. Brown af80925d70 remove references to unused statinfo stuff 2016-04-02 11:58:19 -07:00
Martin A. Brown 5ca7ee9a16 not using statinfo any longer 2016-04-02 11:54:05 -07:00
Martin A. Brown d4237eec58 report on failure/success count during the job
this allows somebody to kill the build in the middle, if there were any
failures
2016-04-02 10:54:35 -07:00
Martin A. Brown 45a0d2120c fetch MD5s for sources; ignore index.sgml files
instead of fetching statinfo, switch to using the MD5 of all files in the
source file set
also ignore any (annoying and) stray index.sgml files
2016-04-02 10:50:54 -07:00
Martin A. Brown 5a06b49967 load the MD5 file, if present
if the MD5 file is not present, then an earlier version of the tldp package
generated the output directory, and we should re-run
if the MD5 file is present in the output directory, load it into the dict()
data structure and return it, so that a stale-check can be completed
2016-04-02 10:49:15 -07:00
Martin A. Brown 5dcc255cc6 calculate stale by MD5s; swap stale/broken
move the stanza that identifies the broken output directories up higher in the
file; it's a simpler chunk of code
adjust the detection of stale-ness by referring to an output MD5 file and
compare with the available source files
2016-04-02 10:47:45 -07:00
Martin A. Brown dccbab5b39 call the MD5 generation util function 2016-04-02 10:47:07 -07:00
Martin A. Brown 691a4bf8d6 make sure to sort the files by name 2016-04-02 10:46:43 -07:00
Martin A. Brown 93390cd467 add tools for computing and sorting source MD5s 2016-04-02 10:45:53 -07:00
Martin A. Brown 84c703a89e skip the MD5SUM file 2016-04-01 23:23:23 -07:00
Martin A. Brown 5530c8f38f and use the MD5SUMS location specified in the OutputDocument 2016-04-01 22:38:35 -07:00
Martin A. Brown 49b2ee57ae add a place to capture the MD5 data of the source 2016-04-01 22:37:53 -07:00
Martin A. Brown 753774c5e9 compute and generate an MD5SUMS file for each source document 2016-04-01 22:19:25 -07:00
Martin A. Brown 9fac28f160 record md5sum info for each source file 2016-04-01 22:18:39 -07:00
Martin A. Brown 673ddaf3e9 skip any directories on stat expedition 2016-04-01 22:17:53 -07:00
Martin A. Brown f5af96d1bf make pep8 a bit happier 2016-04-01 21:33:23 -07:00
Martin A. Brown aef4d6e3ee and generate the directory listing with full (relative) path 2016-04-01 21:10:43 -07:00
Martin A. Brown f5cb7c9e8b support better handling of verbose CLI/config
now ldptool understands --verbose, --verbose yes, --verbose false
2016-03-28 14:06:46 -07:00
Martin A. Brown 8cbdeab558 provide directory existence feedback to user
instead of bailing with an obnoxious error message, or silently ignoring a
command-line option of a directory, squawk to STDERR with the problem and
provide (possibly redundant, but maybe informative) traceback
2016-03-28 11:11:22 -07:00
Martin A. Brown 8de5158eb7 flakes noticed an extra import, removing 2016-03-28 11:10:45 -07:00
Martin A. Brown c442debc51 specify default loglevel in function signature 2016-03-28 11:10:27 -07:00
Martin A. Brown 4658f3101e pep8 improvement 2016-03-28 11:09:43 -07:00
Martin A. Brown 9c3ed36bc2 fix publish function so it propagates return code 2016-03-27 02:26:42 -07:00
Martin A. Brown c0233a73b2 deal with 2/3 naming for stringy things 2016-03-27 01:02:44 -07:00
Martin A. Brown deaee034fc make an end run around the XSL/fop problem
teach the DocBook4 XML utility itself to set fop.extensions = 0 and
fop1.extensions = 1 until such time as the upstream ldp-docbook-xsl packages
can be repaired and/or adjusted
2016-03-27 00:44:00 -07:00
Martin A. Brown f2ef7d2184 support --script mode anywhere and don't chdir() 2016-03-24 09:00:20 -07:00
Martin A. Brown 746197d954 match up the detail method on the OutputDirectory with the SourceDocument 2016-03-18 20:06:52 -07:00
Martin A. Brown d094e9365a specify the footer to use 2016-03-16 16:12:25 -07:00
Martin A. Brown e4b5c5d8bb need to fall back to iso-8859-1 for SGML docs 2016-03-15 13:26:03 -07:00
Martin A. Brown dfd65b43f3 use an empty (unicode_literal) string to trick future print() [function] to producing unicode strings rather than Py2 byte strings 2016-03-14 22:27:15 -07:00
Martin A. Brown 3f92a7a95c everybody gets unicode_literals 2016-03-14 22:18:09 -07:00
Martin A. Brown dcb8b3a217 switch to codecs.open and expect UTF-8 data 2016-03-14 21:42:31 -07:00
Martin A. Brown 2afbc7a147 switch to codecs.open and expect UTF-8 data 2016-03-14 21:42:21 -07:00
Martin A. Brown bb7fbccc6b switch to codecs.open and expect UTF-8 data 2016-03-14 21:42:07 -07:00
Martin A. Brown 2c4f8407b5 convert explicitly to a list before return (Python3) 2016-03-14 21:41:46 -07:00
Martin A. Brown f20fb1c481 no point in using makefh() now; remove 2016-03-14 20:51:55 -07:00
Martin A. Brown 26de64a2bb stop leaking FDs when guessing doctypes 2016-03-14 20:32:42 -07:00
Martin A. Brown a2daee9425 use absolute_import here, too (Python 3) 2016-03-14 20:32:09 -07:00
Martin A. Brown 5af0c2a955 use the proper Python 3.x name for [Safe]ConfigParser 2016-03-14 20:11:04 -07:00
Martin A. Brown 6227e7d8da adjusting the reporting of discovered document counts 2016-03-14 10:34:44 -07:00
Martin A. Brown 01756a16ec add support for sgmlcheck (linuxdoc) 2016-03-13 09:41:55 -07:00
Martin A. Brown 61d55a9f69 CLI-tool friendly handling of EPIPE and INT
And, correcting from the name of the Python class to the format name processed
by the Python class (class.__name__ vs. class.formatname).
2016-03-11 14:21:56 -08:00
Martin A. Brown 5f6ff9ca3d report the output directory first 2016-03-10 11:55:55 -08:00
Martin A. Brown d59850d433 skip adding to removals if in --script mode 2016-03-10 11:42:59 -08:00
Martin A. Brown f7505627a5 pep8/pyflakes fixes 2016-03-10 11:17:09 -08:00
Martin A. Brown 90f8d6e690 add format name to --list output (for sources) 2016-03-10 10:38:40 -08:00
Martin A. Brown 7fbe4b80ec add width entry for doctype (output formatting) 2016-03-10 10:38:20 -08:00
Martin A. Brown c214724fcb group methods a bit more by their similarity
and change naming slightly so log lines at loglevel INFO align
2016-03-10 10:25:39 -08:00