Package: swaks / 20120320.0-1

man-instead-of-pod 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
Description: Run 'man' instead of 'perldoc' if help is requested
 Debian systems are guaranteed to have man installed, and we package
 the Swaks manpage. This reduces manpage render time and package
 dependency count.
Author: Gunnar Wolf <gwolf@debian.org>
Bug-Debian: http://bugs.debian.org/381411
Origin: vendor
Forwarded: not-needed
Last-Update: <2011-12-31>

Index: swaks/swaks
===================================================================
--- swaks.orig/swaks	2012-03-21 10:34:04.000000000 -0600
+++ swaks/swaks	2012-03-21 11:26:31.000000000 -0600
@@ -2377,7 +2377,7 @@
 		$ENV{PATH} .= ":" unless $ENV{PATH} eq "";
 		$ENV{PATH}  = "$ENV{PATH}$Config::Config{'installscript'}";
 		$< = $> = 1 if ($> == 0 || $< == 0);
-		exec("perldoc", $0) || exit(1);
+		exec("man", "swaks") || exit(1);
 		# make parser happy
 		%Config::Config = ();
 	} elsif ($ARGV[0] =~ /^--version$/i) {