MANLIFTER(1)
π MANLIFTER π
okay bestie, welcome to the group chat. this is manlifter, and she's from the Documentation Tools corner of the universe. buckle up, we're about to mass-convert some man pages β¨
πΈ NAME πΈ
manlifter β a mass-conversion script and test harness for doclifter, no cap.
π¦ SYNOPSIS π¦
manlifter [options] [name...]
π DESCRIPTION π
so manlifter is literally a script that sequences doclifter(1) so you can convert an entire manual-page tree into XML-Docbook. it can also generate HTML from that XML if you want. and lowkey its other whole personality is being a torture-test tool for doclifter β it logs errors to standard output and collects timings. she does both. main character energy fr.
when you call her with no file arguments at all, manlifter tries to convert all eligible man pages installed on the system, dropping the resulting xml files under xmlman in the current directory. every successfully translated page foo.N gets copied to manN/foo.xml beneath the output directory β and it does that regardless of what source directory it came from. we don't care where you're from, only where you're going π
a manual page is considered ineligible for batch conversion if it contains text indicating it has been generated from DocBook masters or from Doxygen. (not invited to the party, sorry bestie π)
for each source file she examines, if the destination file already exists and is newer than the source, the conversion is simply skipped. the way that means incremental runs of manlifter do the least work needed to keep the target XML tree up to date. iconic. and likewise, in -h mode, derived HTML files are only made when necessary. she's not doing unpaid overtime π
Stub pages that are just .so redirections get translated into corresponding symlinks of XML files β and, with -h, HTML files too. slay.
you can also call manlifter with a single file argument, which gets interpreted as the stem name of a potential manual page. then she searches all selected manual sections for a matching page and attempts to convert it. in this case, a copy of the man page and the converted version are dropped immediately beneath the output directory, named foobar.man and foobar.man.xml respectively. ngl this mode is normally only of interest to doclifter developers for debugging that program. that's their business, not ours π«Ά
in either of the above cases, manlifter will uncompress the file if it has a .gz, .bz2 or .Z suffix on the name. zip zap, done β¨
π Options are as follows: π
-dβ pass the string argument to eachdocliftercall as options. each space-separated token in the string becomes a separate argument in the call. tokenizer moment.-eβ run in log-filter mode (mainly of interest todoclifterdevelopers). in this mode,manlifterreads a test log from standard input and filters it in a way dependent on the-fand-qoptions. if neither of those is given, messages from successful runs are stripped out and only errors are passed through to standard output. bye bye success stories π-fβ normally, rundoclifteron the files named by each line in the argument file. in error-filter mode the argument is instead interpreted as a filtering regular expression. two moods, one flag.-hβ also generate HTML translations into the output directory. DocBookciterefentrymarkup is transformed to hyperlinks in the directory, and a contents listing is generated toindex.html. cute AND organized π-Iβ specify the root of the manual-page tree. by default this is/usr/share/man. home base fr.-mβ make a patch to correct the last page fetched. it's copied, an editor is called on the copy (using the environment variable$EDITOR), and thendiff(1)is called to drop the patch in theprepatchdirectory. it fails with an error if such a patch is already present. so don't double-dip bestie π-Mβ lift the specified files, then do the equivalent of the-moption. combo move.-oβ set the output directory into which XML-DocBook translations will be dropped. by default this isxmlmanunder the current directory in batch mode, or the current directory otherwise.-pβ interpret the argument as the name of a patch directory (the default name isprepatchunder the current directory). each file namedfoo.N.patchis interpreted as a patch to be applied to the manual pagefoo(N)beforedocliftertranslates it. glow-up before the photoshoot β¨-qβ normally, pass the-q(quiet) option to eachdocliftercall. in error-filter mode, return a list of files on which translation failed. receipts only.-vβ pass the-v(verbose) option to eachdocliftercall. this option can be repeated to increase the verbosity level. she will NOT stop talking and we love that for her π-sβ specify a section to scan. use this with an argument; it should not be necessary when doing a conversion of the entire tree.-Sβ compile error statistics from amanlifterlogfile presented on standard input. this option will be of interest mainly todoclifterdevelopers. number crunching era π-Xβ in batch mode, exclude pages listed in the argument file. this is meant to be used for pages that are known good and take an extremely long time to lift, in order to cut down the time for a test run. (most pages lift in less than a half second, but a few can take 15 minutes or longer. 15 MINUTES. bestie. π)
π the logfile π
manlifter emits a logfile to standard output. the file begins with a timestamp line and a blank line, and ends with a line giving run time and various interesting statistics. between those are stanzas, separated by blank lines β one for each file on which doclifter was run.
the first line of each stanza begins with "! ", followed by the pathname of the source manual pager, followed by "=" and the return status of the doclifter run on that file. following that is a space and doclifter's runtime in seconds. β±οΈ
this initial line may be followed by information messages and the error output of the doclifter run.
π heads up:manliftermust find a copy ofdoclifterin either the current directory or one of the command directories in yourPATHin order to run. nodoclifter, no party.
π BUGS π
HTML generation is painfully slow. unfortunately, there is little we can do to remedy this, because XSLT engines are painfully slow. it's not her fault, it's the engine's fault, and we're all just living in it π
π SEE ALSO π
π¦ AUTHOR π¦
Eric S. Raymond <esr@thyrsus.com>
there is a project web page at http://www.catb.org/~esr/doclifter/. go visit, she's an icon π«Ά
and that's the whole page, bestie! this was manlifter from the Documentation Tools collection, version manlifter, dated 2026-03-22. periodt β¨ππ
π¦ where this page comes from
- ubuntu stonking: doclifter 2.22-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms