Browse Source

use dvips and a TMP file in man2pdf

Samuel W. Flint 3 years ago
parent
commit
82f760866c
1 changed files with 5 additions and 2 deletions
  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
+