1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## txtdocs.dpatch by Andreas Henriksson <andreas@fatal.se>
3
## Original author unknown, this was split out to a dpatch
4
## from a direct source edit.
6
## All lines beginning with `## DP:' are a description of the patch.
7
## DP: Add make rules to build documentation in plain text format.
8
## DP: This adds a build-dependency on lynx.
11
diff -urNad pkg-iproute~/doc/Makefile pkg-iproute/doc/Makefile
12
--- pkg-iproute~/doc/Makefile 2008-01-09 21:24:37.000000000 +0100
13
+++ pkg-iproute/doc/Makefile 2008-01-09 21:24:46.000000000 +0100
17
HTMLFILES=$(subst .sgml,.html,$(shell echo *.sgml))
18
+TXTFILES=$(subst .sgml,.txt,$(shell echo *.sgml))
19
DVIFILES=$(subst .ps,.dvi,$(PSFILES))
36
+ lynx -nolist -dump $< > $@
40
install -m 0644 $(shell echo *.tex) $(DESTDIR)$(DOCDIR)
41
install -m 0644 $(shell echo *.sgml) $(DESTDIR)$(DOCDIR)
44
- rm -f *.aux *.log *.toc $(PSFILES) $(DVIFILES) *.html
45
+ rm -f *.aux *.log *.toc $(PSFILES) $(DVIFILES) *.html $(TXTFILES)