Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern use 'have_toupper' variable for awk toupper() funct...
details: https://anonhg.NetBSD.org/src/rev/85c149d4e672
branches: trunk
changeset: 569892:85c149d4e672
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Sep 12 11:24:15 2004 +0000
description:
use 'have_toupper' variable for awk toupper() function existence test, rather
than 'isgawk' - e.g. nawk has toupper() too
diffstat:
sys/kern/makesyscalls.sh | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (27 lines):
diff -r a014569c0945 -r 85c149d4e672 sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh Sun Sep 12 11:09:32 2004 +0000
+++ b/sys/kern/makesyscalls.sh Sun Sep 12 11:24:15 2004 +0000
@@ -1,5 +1,5 @@
#! /bin/sh -
-# $NetBSD: makesyscalls.sh,v 1.56 2004/07/31 00:55:51 lukem Exp $
+# $NetBSD: makesyscalls.sh,v 1.57 2004/09/12 11:24:15 jdolecek Exp $
#
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
# All rights reserved.
@@ -74,12 +74,12 @@
# Use "awk" at Berkeley, "nawk" or "gawk" elsewhere.
awk=${AWK:-awk}
-# Does this awk have a "toupper" function? (i.e. is it GNU awk)
-isgawk=`$awk 'BEGIN { print toupper("true"); exit; }' 2>/dev/null`
+# Does this awk have a "toupper" function?
+have_toupper=`$awk 'BEGIN { print toupper("true"); exit; }' 2>/dev/null`
# If this awk does not define "toupper" then define our own.
-if [ "$isgawk" = TRUE ] ; then
- # GNU awk provides it.
+if [ "$have_toupper" = TRUE ] ; then
+ # Used awk (GNU awk or nawk) provides it
toupper=
else
# Provide our own toupper()
Home |
Main Index |
Thread Index |
Old Index