Files
pkgsrc-ng/devel/noweb/patches/patch-ah
2013-09-26 17:14:40 +02:00

18 lines
616 B
Plaintext

$NetBSD: patch-ah,v 1.2 2008/03/08 13:02:40 tnn Exp $
--- src/lib/toascii.orig 1999-02-16 22:58:52.000000000 +0100
+++ src/lib/toascii
@@ -7,9 +7,9 @@ for i do
*) echo "This can't happen -- $i passed to toascii" 1>&2 ; exit 1 ;;
esac
done
-awkfile="tmp/awk$$.tmp"
-textfile="/tmp/text$$.tmp"
-tagsfile="/tmp/tags$$.tmp"
+awkfile=$(@MKTEMP@ -t awk -s) || exit 1
+textfile=$(@MKTEMP@ -t text -s) || exit 1
+tagsfile=$(@MKTEMP@ -t tags -s) || exit 1
export awkfile textfile tagsfile
trap 'rm -f $awkfile $textfile $tagsfile' 0 1 2 10 14 15
nawk 'BEGIN { textfile=ENVIRON["textfile"]