Subject: Re: fix for mk/compiler/gcc.mk
To: Jeremy C. Reed <reed@reedmedia.net>
From: Johnny C. Lam <jlam@NetBSD.org>
List: tech-pkg
Date: 02/03/2004 03:54:20
On Mon, Feb 02, 2004 at 12:10:01PM -0800, Jeremy C. Reed wrote:
> mk/compiler/gcc.mk fails (under Linux with bash) for me with:
> 
> sh: -c: line 2: syntax error: unexpected end of file
> bmake:
> "../../mk/compiler/../../mk/compiler/../../mk/compiler/../../mk/compiler/gcc.mk"
> line 185: warning: "if /usr/sbin/pkg_info -K /var/db/pkg -qe gcc; then
> /usr/sbin/pkg_info -K /var/db/pkg -f gcc |
> /usr/bin/grep "File:.*bin/gcc" |                                /bin/sed
> -e "s/.*File: *//;s/bin\/gcc.*//;q";           else
> gccpath="`type cc | /usr/bin/awk '{ print $NF }'`";      case $gccpath in
> /usr/*)                                          /bin/echo
> "`/usr/bin/basename $gccpath`/";              ;;
> *)     /bin/echo "not_found/";                          ;;
> esac" returned non-zero status
> bmake:
> "../../mk/compiler/../../mk/compiler/../../mk/compiler/../../mk/compiler/gcc.mk"
> line 186: Unassociated shell command "fi"

This should be fixed now.  Thanks for reporting the error.

	Cheers,

	-- Johnny Lam <jlam@NetBSD.org>