File: install_manpages.patch

package info (click to toggle)
tk-html3 3.0~fossil20110109-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,644 kB
  • ctags: 5,882
  • sloc: ansic: 48,994; tcl: 26,030; sh: 1,190; yacc: 161; makefile: 24
file content (121 lines) | stat: -rw-r--r-- 5,022 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Author: Ole Streicher <debian@liska.ath.cx>
Description: Install the manpages in the proper section. Fix trivial manpage 
 spelling.
--- a/Makefile.in
+++ b/Makefile.in
@@ -208,7 +208,9 @@
 #========================================================================
 
 doc:
-	$(TCLSH) $(srcdir)/doc/macros.tcl -nroff $(srcdir)/doc/html.man>tkhtml.n
+	$(TCLSH) $(srcdir)/doc/macros.tcl -nroff $(srcdir)/doc/html.man > tkhtml.3tcl
+	$(TCLSH) $(srcdir)/doc/macros.tcl -nroff $(srcdir)/doc/hv3.man > hv3.3tcl
+	$(TCLSH) $(srcdir)/doc/macros.tcl -nroff $(srcdir)/doc/browser.man> hv3browser.3tcl
 
 install: all install-binaries install-libraries install-doc
 
@@ -235,12 +237,12 @@
 #========================================================================
 
 install-doc: doc
-	@mkdir -p $(DESTDIR)$(mandir)/mann
+	@mkdir -p $(DESTDIR)$(mandir)/man3
 	@echo "Installing documentation in $(DESTDIR)$(mandir)"
-	@list='*.n'; for i in $$list; do \
+	@list='*.3tcl'; for i in $$list; do \
 	    echo "Installing $$i"; \
-	    rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
-	    $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
+	    rm -f $(DESTDIR)$(mandir)/man3/`basename $$i`; \
+	    $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man3 ; \
 	done
 
 test: binaries libraries
--- a/doc/macros.tcl
+++ b/doc/macros.tcl
@@ -71,6 +71,8 @@
     regsub -all {_([^ \n]*)_} $output {\1}
   ]
 
+  set output [string map { " -" " \\-" "\t-" "\t\\-"
+                           "\t." "\t ." "'" "\""} $output ]
   set output [string trim [strip_leading_tabs $output]]
   set output [regsub -all {[\n]*REMOVELINEBREAK\n} $output \n]
 
@@ -78,8 +80,7 @@
 }
 
 proc TH {name section} {
-  set date [clock format [clock seconds]]
-  return "\n.TH \"$name\" \"$section\" \"$date\"\n"
+  return "\n.TH \"$name\" \"3tcl\" \"Sat Feb 25 2006\"\n"
 }
 
 proc Section {args} {
--- a/doc/html.man
+++ b/doc/html.man
@@ -36,7 +36,7 @@
 		The Tkhtml package adds the [SQ ::tkhtml::htmlstyle] command to
 		the interpreter it is loaded into. Invoking this command
 		returns a CSS document suitable for use with Tkhml as a default
-		stylesheet for HTML documents. If the "-quirks" option is
+		stylesheet for HTML documents. If the -quirks option is
 		passed to [SQ ::tkhtml::htmlstyle] then the returned document
 		includes some extra rules used when rendering legacy documents.
 
@@ -103,7 +103,7 @@
 		As well as for replacing entire document nodes (i.e. <img>),
 		images are used in several other contexts in CSS formatted
 		documents, for example as list markers or backgrounds. If the
-		-imagecmd option is not set to an empty string (the default),
+		 -imagecmd option is not set to an empty string (the default),
 		then each time an image URI is encountered in the document, it
 		is appended to the -imagecmd script and the resulting list
 		evaluated.
@@ -539,7 +539,7 @@
 
 		The [SQ pathName text text] command returns a string 
 		containing the raw, unformatted text of the displayed document.
-		Each block box is seperated from the next by a newline
+		Each block box is separated from the next by a newline
 		character. Each block of whitespace is collapsed to a
 		single space, except within blocks with the CSS 'white-space'
 		property set to "pre".
--- a/doc/hv3.man
+++ b/doc/hv3.man
@@ -58,7 +58,7 @@
 }]
 
 	The two most important interfaces are the [SQ goto] method and the
-	_-requestcmd_ option. The [SQ goto] method tells the widget to
+	 _-requestcmd_ option. The [SQ goto] method tells the widget to
 	load the document identified by the specified absolute or relative
 	URI.
 
@@ -67,7 +67,7 @@
 	users responsibility to retrieve the document and pass it back to
 	the widget. If the document contains links to external resources
 	(images or CSS stylesheets), then the widget invokes the 
-	_-requestcmd_ script to request these. The _-requestcmd_ callback may
+	 _-requestcmd_ script to request these. The _-requestcmd_ callback may
 	choose to implement handling for one or more of http:// URIs, 
 	file:// URIs or any other existing or invented URI scheme. See
 	the "Example Usage" section below for an example.
@@ -350,7 +350,7 @@
 	to display ready in a Tcl variable (or variables). The solution 
 	here is to invent a custom URI scheme to use within the 
 	application. For example, the following example demonstrates a
-	_-requestcmd_ script that implements the "tclvar:", URI scheme
+	 _-requestcmd_ script that implements the "tclvar:", URI scheme
 	for refering to global Tcl variables.
 	
 	[Code {
@@ -397,7 +397,7 @@
 	found at the start of each URI passed to [SQ tclvar_requestcmd]. This
 	is because Hv3 resolves and escapes all URIs against the base URI 
 	of the currently loaded document before passing them to the 
-	_-requestcmd_. This means you need to be careful with special
+	 _-requestcmd_. This means you need to be careful with special
 	characters. If the name of the variable storing the stylesheet
 	document in the above example were _::css::my_stylesheet_, then
 	markup like this: