summaryrefslogtreecommitdiff
path: root/devel/noweb/patches/patch-aj
blob: 552bc6204a8bf844ac1f6b55c69738dd88f56971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aj,v 1.1.2.2 2006/05/24 00:05:17 salo Exp $

--- ../contrib/norman/htmlgif/pstopbm.orig	1998-08-07 20:29:32.000000000 +0200
+++ ../contrib/norman/htmlgif/pstopbm
@@ -36,8 +36,8 @@ while [ $# -gt 0 ]; do
   shift
 done
 
-tmp=/tmp/pstopbm$$
-tmpa=$tmp.a
+tmp=$(@MKTEMP@ -t pstopbm) || exit 1
+tmpa=$(@MKTEMP@ -t pstopbm_a -s) || exit 1
 if [ $# -eq 0 ]; then cat > $tmp; else cat "$@" > $tmp; fi
 
 if echo "$@" | fgrep .eps > /dev/null; then
@@ -76,7 +76,7 @@ exit 0
 
 
 if [ $# -eq 0 ]; then
-  tmp=/tmp/pstopbm$$
+  tmp=$(@MKTEMP@ -t pstopbm) || exit 1
   cat > $tmp
   gs -q -sDEVICE=$device -sOutputFile=- -dNOPAUSE -dMAGSTEP=1.0 $tmp
 else