1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
  
     | 
    
      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: <2020-10-11>
--- a/swaks
+++ b/swaks
@@ -3817,7 +3817,7 @@ sub ext_usage {
 	$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 = ();
 
 
     |