File: man-instead-of-pod

package info (click to toggle)
swaks 20201014.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 676 kB
  • sloc: perl: 2,959; makefile: 47; sh: 24
file content (21 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (2)
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 = ();