]> git.proxmox.com Git - iproute2.git/blob - debian/patches/0002-txtdocs.patch
590a232a40a4f0a75a5c1e6a232b3127b3cb7bff
[iproute2.git] / debian / patches / 0002-txtdocs.patch
1 From: Debian iproute2 Maintainers <ah-iproute@debian.org>
2 Date: Mon, 10 Jun 2013 11:47:00 +0200
3 Subject: txtdocs
4
5 ---
6 doc/Makefile | 9 ++++++++-
7 1 file changed, 8 insertions(+), 1 deletion(-)
8
9 --- a/doc/Makefile
10 +++ b/doc/Makefile
11 @@ -14,6 +14,7 @@
12 PAGESPERPAGE=2
13
14 HTMLFILES=$(subst .sgml,.html,$(shell echo *.sgml))
15 +TXTFILES=$(subst .sgml,.txt,$(shell echo *.sgml))
16 DVIFILES=$(subst .ps,.dvi,$(PSFILES))
17 PDFFILES=$(subst .ps,.pdf,$(PSFILES))
18
19 @@ -28,6 +29,8 @@
20
21 pdf: $(PDFFILES)
22
23 +txt: $(TXTFILES)
24 +
25 print: $(PSFILES)
26 $(LPR) $(PSFILES)
27
28 @@ -65,9 +68,13 @@
29 %.html: %.sgml
30 $(SGML2HTML) $<
31
32 +%.txt: %.html
33 + lynx -nolist -dump $< > $@
34 +
35 +
36 install:
37 install -m 0644 $(shell echo *.tex) $(DESTDIR)$(DOCDIR)
38 install -m 0644 $(shell echo *.sgml) $(DESTDIR)$(DOCDIR)
39
40 clean:
41 - rm -f *.aux *.log *.toc $(PSFILES) $(DVIFILES) *.html *.pdf
42 + rm -f *.aux *.log *.toc $(PSFILES) $(DVIFILES) *.html *.pdf $(TXTFILES)