]> git.pld-linux.org Git - packages/dos2unix.git/blame - dos2unix-manpage-update.patch
- up
[packages/dos2unix.git] / dos2unix-manpage-update.patch
CommitLineData
62371aa3
AM
1Ripped from Fedora
2
3The dos2unix man page examples are confusing.
4For instance, one piece of text mentions "c.txt", but that file
5isn't used in the following example.
6
7Patch by Bill Anderson
8https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=57507
9
10--- dos2unix-3.1/dos2unix.1
11+++ dos2unix-3.1/dos2unix.1
12@@ -4,127 +4,104 @@
13 .SH NAME
14
15 dos2unix \- DOS/MAC to UNIX text file format converter
16+.SH SYNOPSIS
17
18-.SH SYNOPSYS
19-
20-dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...]
21-.PP
22-Options:
23-.PP
24-[-hkqV] [--help] [--keepdate] [--quiet] [--version]
25+\fBdos2unix\fR [options] [\-c convmode] [\-o file ...] [\-n infile outfile ...]
26
27+\fBdos2unix\fR [\-hkqV] [\-\-help] [\-\-keepdate] [\-\-quiet] [\-\-version]
28 .SH DESCRIPTION
29
30 .PP
31-This manual page documents dos2unix, the program that converts plain text
32+This manual page documents \fBdos2unix\fR, the program that converts plain text
33 files in DOS/MAC format to UNIX format.
34-
35 .SH OPTIONS
36
37-The following options are available:
38 .TP
39-.B \-h --help
40+.B \-h \-\-help
41 Print online help.
42-
43 .TP
44-.B \-k --keepdate
45+.B \-k \-\-keepdate
46 Keep the date stamp of output file same as input file.
47-
48 .TP
49-.B \-q --quiet
50+.B \-q \-\-quiet
51 Quiet mode. Suppress all warning and messages.
52-
53 .TP
54-.B \-V --version
55+.B \-V \-\-version
56 Prints version information.
57-
58 .TP
59-.B \-c --convmode convmode
60-Sets conversion mode. Simulates dos2unix under SunOS.
61-
62+.B \-c \-\-convmode convmode
63+Sets conversion mode. convmode is one of:
64+.B ASCII, 7bit, ISO, Mac
65+with ASCII being the default. Simulates dos2unix under SunOS.
66 .TP
67-.B \-o --oldfile file ...
68+.B \-o \-\-oldfile file ...
69 Old file mode. Convert the file and write output to it. The program
70 default to run in this mode. Wildcard names may be used.
71-
72 .TP
73-.B \-n --newfile infile outfile ...
74+.B \-n \-\-newfile infile outfile ...
75 New file mode. Convert the infile and write output to outfile. File names
76 must be given in pairs and wildcard names should NOT be used or you WILL
77 lost your files.
78-
79 .SH EXAMPLES
80
81 .LP
82 Get input from stdin and write output to stdout.
83 .IP
84 .B dos2unix
85-
86 .LP
87 Convert and replace a.txt. Convert and replace b.txt.
88 .IP
89 .B dos2unix a.txt b.txt
90 .IP
91-.B dos2unix -o a.txt b.txt
92-
93+.B dos2unix \-o a.txt b.txt
94 .LP
95 Convert and replace a.txt in ASCII conversion mode.
96+.IP
97+.B dos2unix a.txt \-c iso b.txt
98+.LP
99 Convert and replace b.txt in ISO conversion mode.
100+.IP
101+.B dos2unix \-c ascii a.txt \-c iso b.txt
102+.LP
103 Convert c.txt from Mac to Unix ascii format.
104 .IP
105-.B dos2unix a.txt -c iso b.txt
106-.IP
107-.B dos2unix -c ascii a.txt -c iso b.txt
108-.IP
109-.B dos2unix -c mac a.txt b.txt
110-
111+.B dos2unix \-c mac c.txt b.txt
112 .LP
113 Convert and replace a.txt while keeping original date stamp.
114 .IP
115-.B dos2unix -k a.txt
116+.B dos2unix \-k a.txt
117 .IP
118-.B dos2unix -k -o a.txt
119-
120+.B dos2unix \-k \-o a.txt
121 .LP
122 Convert a.txt and write to e.txt.
123 .IP
124-.B dos2unix -n a.txt e.txt
125-
126+.B dos2unix \-n a.txt e.txt
127 .LP
128 Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
129 .IP
130-.B dos2unix -k -n a.txt e.txt
131-
132+.B dos2unix \-k \-n a.txt e.txt
133 .LP
134 Convert and replace a.txt. Convert b.txt and write to e.txt.
135 .IP
136-.B dos2unix a.txt -n b.txt e.txt
137+.B dos2unix a.txt \-n b.txt e.txt
138 .IP
139-.B dos2unix -o a.txt -n b.txt e.txt
140-
141+.B dos2unix \-o a.txt \-n b.txt e.txt
142 .LP
143 Convert c.txt and write to e.txt. Convert and replace a.txt.
144 Convert and replace b.txt. Convert d.txt and write to f.txt.
145 .IP
146-.B dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
147-
148-.SH DIAGNOSTICS
149-
150+.B dos2unix \-n c.txt e.txt \-o a.txt b.txt \-n d.txt f.txt
151 .SH BUGS
152
153 The program does not work properly under MSDOS in stdio processing mode.
154 If you know why is that so, please tell me.
155-
156 .SH AUTHORS
157
158-Benjamin Lin -
159+Benjamin Lin
160 .B <blin@socs.uts.edu.au>
161-
162-
163+.br
164 Bernd Johannes Wuebben (mac2unix mode)
165 .B <wuebben@kde.org>
166-
167-
168 .SH MISCELLANY
169
170 Tested environment:
171@@ -136,7 +114,6 @@
172 MS-DOS 6.20 with Borland C++ 4.02
173 .PP
174 Suggestions and bug reports are welcome.
175-
176 .SH SEE ALSO
177-unix2dos(1) mac2unix(1)
178-
179+.BR unix2dos (1),
180+.BR mac2unix (1)
This page took 0.098263 seconds and 4 git commands to generate.