1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00

- Added/RM missing patches

This commit is contained in:
Martin Wilke 2018-07-06 18:00:37 +00:00
parent 6c26093542
commit c2ad1101ef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474028
2 changed files with 47 additions and 11 deletions

View File

@ -1,11 +0,0 @@
--- docs/Makefile.in.orig 2009-08-27 16:33:21.000000000 +0200
+++ docs/Makefile.in 2009-08-27 16:33:21.000000000 +0200
@@ -451,7 +451,7 @@ uninstall-am:
all : all-am default
-default : doc @MAINTAINER_MODE_FALSE@ mans
+default : @MAINTAINER_MODE_FALSE@ mans
clean-doc clean-docs : clean-unpack
- rm $(DISTCLEANFILES)
- rm $(MAINTAINERCLEANFILES)

View File

@ -0,0 +1,47 @@
--- docs/dbk2man.py.orig 2018-03-16 11:55:55 UTC
+++ docs/dbk2man.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python2.7
+#! /usr/bin/python
""" Converts an xml-file with docbook elements into troff manual pages.
The conversion uses etree expecting <refentry> elements in the input.
The output goes to a multiple files in manX/* subdirectories.
@@ -223,22 +223,23 @@ def refentry2man(refentry, subdirectory
if found is not None: manvolnum = found.text
written = 0
section = refentry.find("refnamediv")
- for refname in section.findall("refname"):
- if not refentrytitle:
- refentrytitle = refname.text
- manpage = refname.text
- filename = "%s/man%s/%s.%s" % (subdirectory, manvolnum, manpage, manvolnum)
- if manpage != refentrytitle:
- manpagetext = ".so %s.%s\n" % (refentrytitle, manvolnum)
- writefile(filename, manpagetext)
- else:
- manpagetext = text
+ if section is not None:
+ for refname in section.findall("refname"):
+ if not refentrytitle:
+ refentrytitle = refname.text
+ manpage = refname.text
+ filename = "%s/man%s/%s.%s" % (subdirectory, manvolnum, manpage, manvolnum)
+ if manpage != refentrytitle:
+ manpagetext = ".so %s.%s\n" % (refentrytitle, manvolnum)
+ writefile(filename, manpagetext)
+ else:
+ manpagetext = text
+ writefile(filename, manpagetext)
+ written += 1
+ if not written:
+ manpage = refentrytitle
+ filename = "%s/man%s/%s.%s" % (subdirectory, manvolnum, manpage, manvolnum)
writefile(filename, manpagetext)
- written += 1
- if not written:
- manpage = refentrytitle
- filename = "%s/man%s/%s.%s" % (subdirectory, manvolnum, manpage, manvolnum)
- writefile(filename, manpagetext)
def writefile(filename, manpagetext):
dirname = os.path.dirname(filename)