Commit Graph

294 Commits

Author SHA1 Message Date
Martin A. Brown ce359dfa32 generic method shellscript() cannot test if job is done 2016-02-23 22:37:59 -08:00
Martin A. Brown 8630157046 adapt to generated shellscript model 2016-02-23 21:59:47 -08:00
Martin A. Brown c6ebbf8a64 make a bit less noise in routine operation 2016-02-23 21:59:20 -08:00
Martin A. Brown 120d44ffa5 make a bit more noise when building and skipping 2016-02-23 21:58:56 -08:00
Martin A. Brown ad2a1763ec move method shellscript into BaseDoctype
and fix a few errors in the generated DocBook XML 4.x script
2016-02-23 21:58:03 -08:00
Martin A. Brown f1343deb00 try out a shellscript writing technique instead 2016-02-23 21:17:30 -08:00
Martin A. Brown 7da0670d23 add just a bit more warning bells 2016-02-23 21:17:01 -08:00
Martin A. Brown 83b998cb51 trying to write and execute a shell script 2016-02-23 21:16:44 -08:00
Martin A. Brown cf8c314981 --pubdir type checker should be an arg_isdirectory 2016-02-23 13:13:52 -08:00
Martin A. Brown 8c69e05f94 beefing up some testing for new functions 2016-02-23 13:10:10 -08:00
Martin A. Brown 2fef28a299 adjust the logging information 2016-02-23 12:25:54 -08:00
Martin A. Brown 6ad64ea0e0 add an arg_isfile 2016-02-23 12:18:46 -08:00
Martin A. Brown d5524f09ee move generic function into BaseDoctype 2016-02-23 12:18:33 -08:00
Martin A. Brown 80011bcf9d move generic function into BaseDoctype 2016-02-23 12:18:17 -08:00
Martin A. Brown 3788c4d265 get rid of the paths in mabrown home dir 2016-02-23 12:16:17 -08:00
Martin A. Brown 53c91eebe6 rename the hooks so they start with hook_ 2016-02-23 11:58:29 -08:00
Martin A. Brown a415484b5a separate operations by method and dependencies
use the generalized build sequence running supported by doctypes/
2016-02-23 11:57:37 -08:00
Martin A. Brown df75f051db generalizing build sequence logic
ready for use in first doctype (linuxdoc)
2016-02-23 11:56:58 -08:00
Martin A. Brown 08df7acbe2 rework tracking of success vector 2016-02-23 11:08:04 -08:00
Martin A. Brown 1475cf7890 use arg_ checking functions; add build_precheck
rename platform_check to build_precheck
refer to arg_ checking functions from utils
ensure that just before each build we validate executables
avoid FD leakage by using with ... context for outf (stdout)
2016-02-23 11:05:28 -08:00
Martin A. Brown 11834a17cc initial work on supporting build verb 2016-02-23 11:05:04 -08:00
Martin A. Brown b4895a2e0b use arg_ checking functions from 2016-02-23 11:04:43 -08:00
Martin A. Brown 58246eb6e7 add to the tldp package 2016-02-23 11:04:20 -08:00
Martin A. Brown 6c4fd88944 adding arg_* handlers; fix FD leakage in execute
fix FD leakage in function execute: must close stdout and stderr if
execute opens them (process logging in per-document logdir)
add functions arg_isloglevel, arg_isdirectory and arg_isexecutable
2016-02-23 11:02:36 -08:00
Martin A. Brown 4f335dda98 adding a TODO file to the package 2016-02-23 09:45:26 -08:00
Martin A. Brown f9453185df deleting unnecessary file 2016-02-23 09:44:12 -08:00
Martin A. Brown 51fabb65d7 change platform to config 2016-02-23 09:43:27 -08:00
Martin A. Brown 13bb8d3129 remove reference to platform 2016-02-23 09:43:06 -08:00
Martin A. Brown 3a0ee539fa adding [%(default)s] to each argparse entry 2016-02-23 09:08:08 -08:00
Martin A. Brown 5508d1113b repair detail() and status() generation functions
and pass args into all driver functions
2016-02-23 09:00:27 -08:00
Martin A. Brown f567a0be13 add status_classes for user interaction 2016-02-23 08:59:56 -08:00
Martin A. Brown 04c10a6af9 refer to %(default)s; shorter lines 2016-02-23 08:59:37 -08:00
Martin A. Brown 7bb5e35aeb add detail method to source and output documents
the detail method produces some output listing about the
document and will soon include more verbosity
2016-02-23 08:44:16 -08:00
Martin A. Brown abb471c912 refer to status_classes and pep8 fix 2016-02-23 08:44:05 -08:00
Martin A. Brown 5dee57763c pep8 fix 2016-02-23 08:43:44 -08:00
Martin A. Brown d3be338b75 begin logic for user interaction in 2016-02-22 21:22:42 -08:00
Martin A. Brown 4fb18c8822 rename sources/outputs to singular; remember newer files 2016-02-22 21:22:17 -08:00
Martin A. Brown 01acf2dfa6 add a property/function for reporting missing files 2016-02-22 21:21:48 -08:00
Martin A. Brown c821eadac1 improve command-line utility; work out the kinks (before testing) 2016-02-22 21:21:24 -08:00
Martin A. Brown e46c844a94 renamed attr to "orphan" 2016-02-22 20:26:07 -08:00
Martin A. Brown ce7f703929 itemize valid types for status codes
and standardize on name 'orphan' (not 'orphans' or 'orphaned')
assume that SourceCollection and OutputCollection keys are always sorted
2016-02-22 20:24:19 -08:00
Martin A. Brown b62b732a23 correct location of logging.debug message, suppress None in cfg 2016-02-22 20:23:59 -08:00
Martin A. Brown 25add163cb rely on LDPDocumentCollection 2016-02-22 20:02:12 -08:00
Martin A. Brown fb0001a397 adding commonal parent class LDPDocumentCollection
factored out the dict-like behaviour (and added sorting behaviour)
from SourceCollection and OutputCollection to LDPDocumentCollection
2016-02-22 20:00:24 -08:00
Martin A. Brown 6fe55dc912 and deal with the problem ofg None 2016-02-22 18:03:44 -08:00
Martin A. Brown b6edf39aeb try the loglevel before using it 2016-02-22 17:46:41 -08:00
Martin A. Brown 2087719782 removing extraneous sample invocations 2016-02-22 17:28:15 -08:00
Martin A. Brown 15fe8fc3b6 factor out --dump-cli and --dump-env logic into functions 2016-02-22 17:27:27 -08:00
Martin A. Brown f6eedfcb7b flesh out CLI options and add --loglevel option 2016-02-22 17:10:45 -08:00
Martin A. Brown 7486a26cc3 initial commit of main 'ldptool' driver program 2016-02-22 16:20:15 -08:00