head 1.4; access; symbols pkgsrc-2025Q4:1.3.0.156 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.154 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.152 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.150 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.148 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.146 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.144 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.142 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.140 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.138 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.136 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.134 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.132 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.130 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.128 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.126 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.124 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.122 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.120 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.118 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.116 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.114 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.110 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.90 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.112 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.108 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.106 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.104 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.102 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.100 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.98 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.96 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.94 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.92 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.88 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.86 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.84 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.82 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.80 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.78 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.76 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.74 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.72 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.70 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.68 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.66 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.64 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.62 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.60 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.58 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.56 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.54 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.52 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.50 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.48 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.46 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.44 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.42 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.40 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.38 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.36 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.34 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.32 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.30 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.28 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.26 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.24 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.22 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.20 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.18 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.16 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.14 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.12 pkgsrc-2008Q1:1.3.0.10 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.8 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.6 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.4 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.2 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.2.0.14 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.12 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.10 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.8 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.6 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.4 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.2 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.1.0.2 pkgsrc-2005Q1-base:1.1; locks; strict; comment @# @; 1.4 date 2026.02.21.20.18.51; author wiz; state dead; branches; next 1.3; commitid jnFnUJAYhdfFDhvG; 1.3 date 2007.01.15.23.40.46; author wiz; state Exp; branches; next 1.2; 1.2 date 2005.03.28.18.50.02; author wiz; state Exp; branches; next 1.1; 1.1 date 2005.01.09.13.19.25; author recht; state Exp; branches; next ; desc @@ 1.4 log @doclifter: update to 2.22. 2.22: 2026-02-21 Converted documentation to asciidoc. We no longer assume DocBook backends can process ISO entities. Improved handling of MM header macros. Code audited and hardened by ChatGPT-5.2. Documentation is fully spellchecked. 2.21: 2024-02-15 Allow aliasing MTO to URL - happens in some macro boilerplate Discard \F changes in the title field of .TH TAPify test machinery. Drop testing against Python 2 2.20: 2021-09-20 Handle \[en] in NAME sections. Use modern GCC error-line tags. Handle groff hex escapes like \\*[u92DC]. Ubuntu has abolished /usr/bin/python, change shebang to python3. 2.19: 2019-03-20 Handle .Bf/.Ef in mdoc. 2.18: 2018-06-12 .in +4/.EX…EE/.in is now translated structurally. Cope gracefully with some idiosyncracies in OpenSSL library pages. Recognize new-style pod2man header. Ignore .Dd $Mdocdate$. Automatically lift 2-digit dates to 4 digits. Mwww fix to .MTO generation; also, ignore .LINKSTYLE. In mm, interpret .DS/.DE as informal figure and .FG as a caption element. Process mdoc .Lk request. 2.17: 2016-03-08 Add role mapping for bold highlights. Fix list syntax not being terminated by PP. Fix a bug that caused pages containing PIC diagrams to get clobbered. Fix a bug introduced in 2.16 that caused spurious failures under Python 2. Error messages for command and function syntax parse failures have improved. 2.16: 2016-02-25 Code now runs under either Python 2 or Python 3. Possible input encodings can be specified with the -i option. Change default output encoding from ISO-8859-1 to UTF-8. Handle .de co and .de au in NAME sections; the groff suite needs this. 2.15: 2014-06-03 The usual minor improvements for strange edge cases. Work around bugginess of --postvalid in recent xmllint versions. Cleanup for new version of pylint. 2.14: 2014-03-18 BSD port fix. 2.13: 2013-09-27 Simplify and improve ntroff expression evaluation. 2.12: 2013-06-17 New logic prevents spurious warnings from .in +N just before .nf. Many more instances of .ta are now automatically handled. Multi-file compilation was broken, is now repaired. 2.11: 2013-06-01 W3C moved a math DTD; cope. Improved .Bl/.El handling and updated canned strings in mdoc. Accept \(hy in name sections. Handle  , inadvertently omitted from DocBook v4. Added -V for version option. 2.10: 2013-03-17 Preserve trailing comments after table rows (example: matherr(3)). Add support for some previously missing groff extension glyphs. Improved handling of .Bd/.Be in mdoc. 2.9: 2012-07-30 Handle foojzs pages better. Interpret some cases of .rj. Recognize "Feature Test" as a function synopsis ender. Handle m, r and d troff conditionals. Process .ti with positive indent into
around the following line. Support all mdoc special-character strings. Improved recognition of program listings. Fix brown-paper-bag bug in processing of mdoc 2.8: 2012-06-24 Fix a bug in command-synopsis parsing pointed out by Tom Browder Lifts 97% of 11029 pages in a full Ubuntu Precise Pangolin release. 2.7: 2011-08-23 Improvement for lynxprep handling by Jon Vyse. 2.6: 2010-11-26 Clean up glitches revealed by pychecker. Fix buggy interpretation of ms .AI macro. Map TBL "box" attribute to Docbook frame="border". 2.5: 2010-10-19 Handle groff \m color extension. Deal gracefully with manpages generated by reStructuredText. Cope with groff-style \F font escapes better. Partial interpretation of troff \h. 2.4: 2010-07-22 eqn markup is now handled if the eqn -TMathml switch produces results. Bell Labs or Berkeley meaning of .P1 is dispatched to depending on whether .P2 is present. Added -w option for strict portability checking. Fedora bug 220736 fixed. All troff glyphs are now mapped (added bracket-pile characters, yogh, hooked-o, and underdot). You are now warned of sequences that look like glyphs but can’t be mapped. Table handling for mdoc pages has been much improved. Tests for requests that can’t be turned into structure are stricter. Appropriate cases of \o are now translated into Latin-1 and Latin-2 letters with accents. Inline ad-hoc tables made with .ta and literal tabs are now lifted. Groff extended escapes $* and $@@ are now handled. Speed optimizations so it’s about 30% faster, and a profiling switch on manlifter. Rudimentary DocBook V5 translation, but inclusions and character entities are iffy and untested. Lifts 94% of 11863 pages in a full Ubuntu Lucid Lynx install. @ text @$NetBSD: patch-aa,v 1.3 2007/01/15 23:40:46 wiz Exp $ --- manlifter.orig 2006-12-25 07:43:35.000000000 +0000 +++ manlifter @@@@ -316,7 +316,8 @@@@ def massrun(files, options): signal.signal(signal.SIGUSR2, report) signal.signal(signal.SIGHUP, bailout) signal.signal(signal.SIGINT, bailout) - signal.signal(signal.SIGPWR, bailout) + if sys.platform != 'darwin': + signal.signal(signal.SIGPWR, bailout) signal.signal(signal.SIGTERM, bailout) print "%Test started", time.ctime(), "\n" try: @@@@ -584,22 +585,17 @@@@ def doclifter_driver(options, arguments) fp.close() if __name__ == "__main__": - # Find a copy of doclifter - for pathdir in ["."] + os.environ["PATH"].split(":"): - where = os.path.join(pathdir, "doclifter") - if os.path.exists(where): - break - else: - sys.stderr.write("manlifter: can't find doclifter!\n") - sys.exit(1) - # Import it, so we can modify it while the test is running without - # screwing up the results + import imp + fp = open('@@@@BIN_PATH@@@@/doclifter') try: - os.system("cp %s doclifter_test%s.py" % (where, os.getpid())) - exec 'import doclifter_test%s' % os.getpid() - exec "doclifter=doclifter_test%s" % os.getpid() + try: + doclifter = imp.load_module('doclifter', fp, '@@@@BIN_PATH@@@@/doclifter', ('.py', 'U', 1)) + except ImportError: + sys.stderr.write("manlifter: can't find doclifter!") + sys.exit(1) finally: - os.system("rm -f doclifter_test%s.py*" % os.getpid()) + if fp: + fp.close() # Gather options (options, arguments) = getopt.getopt(sys.argv[1:], "d:ef:hI:p:qs:Sv") # Do the real work @ 1.3 log @Update to 2.3: * Mon Dec 25 2006 Eric S. Raymond - 2.3-1 - Work around a bug in db2man.xsl. Implement Markus Hoenicka's requested behavior for multiple-file conversions. Implement translation of groff extended .cc and .c2 requests. Ignore the .TA macro that occurs duplicatively with .ta in X.org manual pages. Cope with unresolved .Sx refererences in mdoc. Handle .Ex and .Ee. Cope with X consortium macro preamble better. .RS/.RE is now fully handled, no more spurious warnings. * Sat Jan 15 2005 Eric S. Raymond - 2.2-1 - Have manlifter create subdirectories and the xslfragment only in batch mode. Use current list indent on block start/end. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 2005/03/28 18:50:02 wiz Exp $ @ 1.2 log @Add RCS Id. @ text @d1 5 a5 4 $NetBSD$ --- manlifter.orig Fri Dec 24 23:44:11 2004 +++ manlifter Sun Jan 9 14:06:09 2005 @@@@ -300,7 +300,8 @@@@ d15 1 a15 1 @@@@ -557,22 +558,18 @@@@ d25 1 a25 1 - sys.stderr.write("manlifter: can't find doclifter!") d35 5 a39 5 + try: + doclifter = imp.load_module('doclifter', fp, '@@@@BIN_PATH@@@@/doclifter', ('.py', 'U', 1)) + except ImportError: + sys.stderr.write("manlifter: can't find doclifter!") + sys.exit(1) d42 2 a43 3 + if fp: + fp.close() + @ 1.1 log @Fix manlifter to correctly import doclifter. While at it also fix manlifter for Darwin which doesn't have SIGPWR. Now this is fixed manlifter can also be installed. bump PKGREVISION to 1 @ text @d1 1 @