Explorar o código

use dvips and a TMP file in man2pdf

Samuel W. Flint %!s(int64=4) %!d(string=hai) anos
pai
achega
82f760866c
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      man2pdf

+ 5 - 2
man2pdf

@@ -1,4 +1,7 @@
 #!/bin/sh
 
-man -T $1 > $1.ps
-ps2pdf $1.ps
+TMP=$(mktemp)
+
+man -Tdvi $1 > $TMP.dvi
+dvipdf $TMP.dvi $1.pdf
+