Package: txt2man / 1.5.5-4.1

debian-changes-1.5.5-2.1 Patch series | 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
Description: Upstream changes introduced in version 1.5.5-2.1
 This patch has been created by dpkg-source during the package build.
 Here's the last changelog entry, hopefully it gives details on why
 those changes were made:
 .
 txt2man (1.5.5-2.1) unstable; urgency=low
 .
   * Switch to dpkg-source 3.0
 .
 The person named in the Author field signed this changelog entry.
Author: Fredrik Steen <stone@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- txt2man-1.5.5.orig/bookman
+++ txt2man-1.5.5/bookman
@@ -83,16 +83,16 @@ done
 shift $(($OPTIND - 1))
 date=${date:-$(date +'%d %B %Y')}
 
-[[ $1 ]] || set -- $(while read; do echo $REPLY; done)
+[ $1 ] || set -- $(while read REPLY; do echo $REPLY; done)
 
-[[ $outfile ]] && post="$post >$outfile"
+[ $outfile ] && post="$post >$outfile"
 
 {
 	# Compute table of content from postscript output.
 	# Generate output in gtroff intermediate format, so
 	# it can be merged with content.
 	{
-		[[ -f $cover ]] && cat $cover || {
+		[ -f $cover ] && cat $cover || {
 			printf ".af %% i\n.P1\n"
 			printf ".OH ||%s||\n" "$volume"
 			printf ".EH ||%s||\n" "$volume"
--- txt2man-1.5.5.orig/txt2man
+++ txt2man-1.5.5/txt2man
@@ -139,11 +139,11 @@ do
 	p) doprobe=1;;
 	I) itxt="$OPTARGļæ½$itxt";;
 	B) btxt=$OPTARG;;
-	T) post="groff -mandoc -Tlatin1 | ${PAGER:-more}";;
+	T) post="groff -mandoc -Tlatin1 | ${PAGER:-pager}";;
 	X) post="groff -mandoc -X";;
 	*) usage; exit;;
 	esac
 done
 shift $(($OPTIND - 1))
 date=${date:-$(date +'%d %B %Y')}
 
@@ -162,7 +163,7 @@ then
 	rel=$(pwd | sed 's:/.*[^0-9]/::g; s:/.*::g')
 fi
 
-head=".\\\" Text automatically generated by txt2man
+head="\"Text automatically generated by txt2man
 .TH $title $section \"$date\" \"$rel\" \"$volume\""
 
 # All tabs converted to spaces
@@ -170,7 +171,7 @@ expand $* |
 # gawk is needed because use of non standard regexp
 gawk --re-interval -v head="$head" -v itxt="$itxt" -v btxt="$btxt" '
 BEGIN {
-	print head
+	print ".\\"head
 	avar[1] = btxt; avar[2] = itxt
 	for (k in avar) {
 		mark = (k == 1) ? "\\fB" : "\\fI"
@@ -186,7 +187,7 @@ BEGIN {
 }
 {
 	# to avoid some side effects in regexp
-	sub(/\.\.\./, "\\.\\.\\.")
+	gsub(/\.\.\./, "\\.\\.\\.")
 	# remove spaces in empty lines
 	sub(/^ +$/,"")
 }