[patch] Protect generated .h files from multiple inclustion,include tm.h in hooks.h, and FIX BOOTSTRAP
Nathanael Nerode
neroden@twcny.rr.com
Thu Jun 19 11:56:00 GMT 2003
I said:
>> (Could get into problems if the use of 'sed' turns out to be
>>unportable
>> in some stupid way, but I doubt that.)
Zack said:
>
>I think y/// is portable, but just to be safe, suggest you use tr
>instead:
I checked the GNU Coding Standards:
http://www.gnu.org/prep/standards_52.html#SEC52
I noted that 'sed' was in the list of programs and 'tr' wasn't.
:-/
Hence my choice.
>tr_from='abcdefghijklmnopqrstuvwxyz./'
>tr_to='ABCDEFGHIJKLMNOPQRSTUVWXYZ__'
>header_guard=GCC_`echo "$output" | tr "$tr_from" "$tr_to"`
>
>Note also the inclusion of / in the transliteration set.
Right, I'll do that in my next version. :-)
--
Nathanael Nerode <neroden at gcc.gnu.org>
Don't use the GNU FDL for free documentation. See
<http://home.twcny.rr.com/nerode/neroden/fdl.html>
More information about the Gcc-patches
mailing list