Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/host-mkdep Put back error checking in a simpler form t...
details: https://anonhg.NetBSD.org/src/rev/457218e7ff4f
branches: trunk
changeset: 785484:457218e7ff4f
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 16 02:51:56 2013 +0000
description:
Put back error checking in a simpler form thanks to uwe
diffstat:
tools/host-mkdep/host-mkdep.in | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r f5e3d2b717e7 -r 457218e7ff4f tools/host-mkdep/host-mkdep.in
--- a/tools/host-mkdep/host-mkdep.in Sat Mar 16 02:51:25 2013 +0000
+++ b/tools/host-mkdep/host-mkdep.in Sat Mar 16 02:51:56 2013 +0000
@@ -1,6 +1,6 @@
#!@BSHELL@ -
#
-# $NetBSD: host-mkdep.in,v 1.27 2013/03/14 14:55:35 joerg Exp $
+# $NetBSD: host-mkdep.in,v 1.28 2013/03/16 02:51:56 christos Exp $
#
# Copyright (c) 1991, 1993
# The Regents of the University of California. All rights reserved.
@@ -231,7 +231,7 @@
file=${file%.*}
set_objlist $file
- @CPP@ "$@" $f | @AWK@ '
+ ((@CPP@ "$@" $f; echo $? >&3) | @AWK@ '
/^#/ {
# Be as tolerant as possible.
sub(/^#(line)? [ 0-9]*\"?/, "")
@@ -247,7 +247,7 @@
print "'"$objlist"'" ": " $0
'"$AWK_OPTIONAL"'
}
- ' >> $TMP
+ ' >> $TMP) 3>&1 | (read a; exit $a)
done
fi
Home |
Main Index |
Thread Index |
Old Index