This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Get rid of separate config.sub/guess in boehm-gc and libjava/libltdl
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "Zack Weinberg" <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Nathanael Nerode <neroden at twcny dot rr dot com>, "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: 21 Feb 2004 03:12:17 -0300
- Subject: Re: Get rid of separate config.sub/guess in boehm-gc and libjava/libltdl
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <87znbei2vr.fsf@egil.codesourcery.com>
On Feb 20, 2004, "Zack Weinberg" <zack@codesourcery.com> wrote:
> Instead I propose to replace the subdirectory copies of
> config.sub/guess with wrapper scripts which invoke the copies in the
> top level.
Lovely!
> +srcdir="`echo $0 | sed 's|/[^/]*$||'`"
> +exec "$srcdir"/../config.sub "$@"
make it:
srcdir=`echo "x$0" | sed -e '1s/^x//' -e 's|/[^/]*$||'`
exec "$srcdir"/../config.sub ${1+"$@"}
and check it in.
Thanks,
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Happy GNU Year! oliva@{lsd.ic.unicamp.br, gnu.org}
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist Professional serial bug killer