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

20 lines
587 B
Plaintext

$NetBSD: patch-ak,v 1.2 2008/03/08 13:02:40 tnn Exp $
--- contrib/jobling/correct-refs.nw.orig 1995-05-24 20:12:48.000000000 +0200
+++ contrib/jobling/correct-refs.nw
@@ -332,11 +332,12 @@ gawk -f $LIB/awk-scripts.awk anchor-list
echo Processing HTML nodes
foreach f (*.awk)
set root=$f:r
+ set tmpfile=`@MKTEMP@ -t noweb` || exit 1
echo -n Processing $root.html
- gawk -f $f < $root.html >! /tmp/$root.html
+ gawk -f $f < $root.html >! $tmpfile
echo "..." Done
cp $root.html $root.html.bak
- cp /tmp/$root.html $root.html
+ cp $tmpfile $root.html
end
@