Next: , Previous: coot-utils, Up: Scheme Scripting Functions


13.35 snarf-coot-docs

— procedure: glob pat dir

return a list of file names that match pattern pat in directory dir.

— procedure: strip-extension s

"a.b.res" -> "a.b" file-name-sans-extension

— procedure: command-in-path? cmd

Return #t or #f:

— procedure: goosh-command cmd args data-list log-file-name screen-output-also?

Where cmd is e.g. "refmac" args is (list "HKLIN" "thing.mtz") log-file-name is "refmac.log" data-list is (list "HEAD" "END")

Return the exist status e.g. 0 or 1.

— procedure: run-command/strings cmd args data-list

Return the strings screen output of cmd or #f if command was not found

— procedure: string->list-of-strings str

Return a list if str is a string, else return '()

— procedure: directory-files dir

The following functions from PLEAC (guile version thereof of course).

or define a utility function for this

— procedure: add-to-list-section-texis
— procedure: delete-section-texi-files