pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/bootstrap Fix a reversed test -- if the user specifies...
details: https://anonhg.NetBSD.org/pkgsrc/rev/139af450973e
branches: trunk
changeset: 516422:139af450973e
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Jul 20 19:28:42 2006 +0000
description:
Fix a reversed test -- if the user specifies "CC" in the environment,
then he really doesn't want to always use CC=gcc. This has no effect
if you were previously setting CC=gcc anyway. Noted by Stuart Shelton.
diffstat:
bootstrap/bootstrap | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 75117e421900 -r 139af450973e bootstrap/bootstrap
--- a/bootstrap/bootstrap Thu Jul 20 19:16:23 2006 +0000
+++ b/bootstrap/bootstrap Thu Jul 20 19:28:42 2006 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.70 2006/07/20 15:13:10 jlam Exp $
+# $NetBSD: bootstrap,v 1.71 2006/07/20 19:28:42 jlam Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -730,7 +730,7 @@
case "$need_awk" in
yes) echo_msg "Installing awk"
copy_src ../lang/nawk/files awk
- test -z "$CC" || CC=gcc # default to gcc if no compiler is specified
+ test -n "$CC" || CC=gcc # default to gcc if no compiler is specified
run_cmd "(cd $wrkdir/awk && $bmake -f Makefile CC=\"${CC}\")"
run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/awk/a.out $prefix/bin/nawk"
run_cmd "$install_sh -c -o $user -g $group -m 644 $wrkdir/awk/nawk.1 $mandir/man1/nawk.1"
Home |
Main Index |
Thread Index |
Old Index