From 43f6ebcc2e27885a6705ffdb926afb454545e3ab Mon Sep 17 00:00:00 2001 From: niklas Date: Sat, 25 Jan 1997 14:27:43 +0000 Subject: [PATCH] Use ${CC:-cc} instead of cc --- usr.bin/mkdep/mkdep.append | 4 ++-- usr.bin/mkdep/mkdep.gcc.sh | 6 +++--- usr.bin/mkdep/mkdep.sh | 4 ++-- usr.bin/mkdep/mkdep.ultrix | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/usr.bin/mkdep/mkdep.append b/usr.bin/mkdep/mkdep.append index bda5ab3fbf9..ddda7c23d87 100644 --- a/usr.bin/mkdep/mkdep.append +++ b/usr.bin/mkdep/mkdep.append @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: mkdep.append,v 1.4 1997/01/25 08:47:55 deraadt Exp $ +# $OpenBSD: mkdep.append,v 1.5 1997/01/25 14:27:43 niklas Exp $ # $NetBSD: mkdep.append,v 1.2 1994/12/23 07:34:57 jtc Exp $ # # Copyright (c) 1991, 1993 @@ -96,7 +96,7 @@ _EOF_ # egrep '^#include[ ]*".*"' /dev/null $* | # sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' -e 's/\.c/.o/' | -cc -M $* | +${CC:-cc} -M $* | sed " s; \./; ;g $SED" | diff --git a/usr.bin/mkdep/mkdep.gcc.sh b/usr.bin/mkdep/mkdep.gcc.sh index d852cd0d6fc..eabafc98600 100644 --- a/usr.bin/mkdep/mkdep.gcc.sh +++ b/usr.bin/mkdep/mkdep.gcc.sh @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: mkdep.gcc.sh,v 1.5 1997/01/25 08:47:56 deraadt Exp $ +# $OpenBSD: mkdep.gcc.sh,v 1.6 1997/01/25 14:27:44 niklas Exp $ # $NetBSD: mkdep.gcc.sh,v 1.9 1994/12/23 07:34:59 jtc Exp $ # # Copyright (c) 1991, 1993 @@ -81,9 +81,9 @@ umask $um trap 'rm -rf $DTMP ; exit 1' 1 2 3 13 15 if [ x$pflag = x ]; then - cc -M "$@" | sed -e 's; \./; ;g' > $TMP + ${CC:-cc} -M "$@" | sed -e 's; \./; ;g' > $TMP else - cc -M "$@" | sed -e 's;\.o :; :;' -e 's; \./; ;g' > $TMP + ${CC:-cc} -M "$@" | sed -e 's;\.o :; :;' -e 's; \./; ;g' > $TMP fi if [ $? != 0 ]; then diff --git a/usr.bin/mkdep/mkdep.sh b/usr.bin/mkdep/mkdep.sh index 0536c8aa2fc..488c4ecb841 100644 --- a/usr.bin/mkdep/mkdep.sh +++ b/usr.bin/mkdep/mkdep.sh @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: mkdep.sh,v 1.5 1997/01/25 08:47:58 deraadt Exp $ +# $OpenBSD: mkdep.sh,v 1.6 1997/01/25 14:27:44 niklas Exp $ # $NetBSD: mkdep.sh,v 1.3 1994/12/23 07:35:02 jtc Exp $ # # Copyright (c) 1991, 1993 @@ -79,7 +79,7 @@ fi umask $um trap 'rm -rf $DTMP ; exit 1' 1 2 3 13 15 -cc -M $* | +${CC:-cc} -M $* | sed " s; \./; ;g /\.c:$/d diff --git a/usr.bin/mkdep/mkdep.ultrix b/usr.bin/mkdep/mkdep.ultrix index 59d6a56358a..39edbcb1748 100644 --- a/usr.bin/mkdep/mkdep.ultrix +++ b/usr.bin/mkdep/mkdep.ultrix @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: mkdep.ultrix,v 1.4 1997/01/25 08:47:58 deraadt Exp $ +# $OpenBSD: mkdep.ultrix,v 1.5 1997/01/25 14:27:45 niklas Exp $ # $NetBSD: mkdep.ultrix,v 1.2 1994/12/23 07:35:04 jtc Exp $ # # Copyright (c) 1991, 1993 @@ -97,7 +97,7 @@ _EOF_ # sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' -e 's/\.c/.o/' | # Ultrix has already used -M for something else. -cc -Em $* | +${CC:-cc} -Em $* | sed " s; \./; ;g $SED" | -- 2.20.1