This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [trunk][patch] Install headers and plugin-version.o
- From: Rafael Espindola <espindola at google dot com>
- To: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>, Rafael Espindola <espindola at google dot com>, Paolo Bonzini <bonzini at gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 6 May 2009 09:24:44 +0100
- Subject: Re: [trunk][patch] Install headers and plugin-version.o
- References: <38a0d8450904210614v407ef154v17927b6c9bcb0c92@mail.gmail.com> <Pine.LNX.4.64.0904211547271.16159@digraph.polyomino.org.uk> <38a0d8450904210949g3c5d4e9do3042f3047053fcea@mail.gmail.com> <Pine.LNX.4.64.0904211824350.20450@digraph.polyomino.org.uk> <38a0d8450904220509o3d650df1w601198913a3bcafd@mail.gmail.com> <38a0d8450905050624s1de6f10bxe3719c9ffabc1d74@mail.gmail.com> <38a0d8450905050638x7e301d16t5f8113cae7a1172c@mail.gmail.com> <4A0047C8.8090200@gnu.org> <38a0d8450905051020p7b59f9f2r45b564e327f62f3@mail.gmail.com> <20090505204038.GB26130@gmx.de>
>> + Â Â Â case $$path in \
>> + Â Â Â "$(srcdir)"*/config/* | "$(srcdir)"*.def ) \
>
> Sure you didn't mean this here?
> Â Â Â Â Â"$(srcdir)"/config/* | "$(srcdir)"/*.def ) \
Probably just a mistake. Will add the / and tent.
>> + Â Â Â Â base=`echo $$path | sed "s|$(srcdir)||"`;; \
>
> Ouch. Â$(srcdir) could contain a backslash, a dot, and other
> regex-active characters. ÂAutomake uses one of two methods to strip
> $(srcdir)/, namely either
> Âsrcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
> Âcase $$p in \
> Â Â$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
> Â Â*) f=$$p;; \
> Âesac;
>
> or
> Âsrcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
> Âlist=`for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"`
>
> where the second works on lists and doesn't require case matching for
> whether a path contains $(srcdir)/ or not.
Will try that too. Thanks.
> Cheers,
> Ralf
>
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047