This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Get rid of separate config.sub/guess in boehm-gc and libjava/libltdl


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]