File: 12_python3.patch

package info (click to toggle)
netpbm-free 2%3A11.10.02-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 22,688 kB
  • sloc: ansic: 204,782; sh: 11,308; perl: 3,246; makefile: 1,608; python: 292; lex: 269; csh: 243; pascal: 13
file content (30 lines) | stat: -rw-r--r-- 841 bytes parent folder | download | duplicates (3)
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
Description: Use Python3 in manpage creation
Bug-Debian: https://bugs.debian.org/968024
Author: Andreas Tille <tille@debian.org>
Last-Update: 2022-03-11
Forwarded: 2023-08-17 mail to maintainer

--- a/buildtools/makeman
+++ b/buildtools/makeman
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # makeman -- compile netpbm's stereotyped HTML to troff markup
 #
--- a/buildtools/manpage.mk
+++ b/buildtools/manpage.mk
@@ -126,11 +126,11 @@ reportman:
 # to standard error.
 %.1 %.3 %.5: $(USERGUIDE)/%.html
 	@echo Converting $< to $@
-	@python $(MAKEMAN) -d $(USERGUIDE) $(<F) 
+	@python3 $(MAKEMAN) -d $(USERGUIDE) $(<F) 
 
 netpbm.1: $(USERGUIDE)/index.html
 	@echo Converting $< to $@
-	@python $(MAKEMAN) -d $(USERGUIDE) index.html
+	@python3 $(MAKEMAN) -d $(USERGUIDE) index.html
 	@mv index.1 netpbm.1
 
 # Generate man pages