pkgsrc/devel/noweb/patches/patch-ah

18 lines
610 B
Text
Raw Normal View History

$NetBSD: patch-ah,v 1.1 2006/05/23 16:07:04 joerg Exp $
--- lib/toascii.orig 1999-02-16 22:58:52.000000000 +0100
+++ 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"]