X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libiberty%2Fgather-docs;h=2f1f3b1f699e62407f4864fd669af6cebbbc2d9a;hb=012d8ebc4bd1a1afb95d902604007b04762207f0;hp=b272c02ef2a9f2fd51cd3d13ec7e77201aad47e2;hpb=39423523167c47f72822dbb9eb3ab4a0dfeafe68;p=platform%2Fupstream%2Fbinutils.git diff --git a/libiberty/gather-docs b/libiberty/gather-docs index b272c02..2f1f3b1 100644 --- a/libiberty/gather-docs +++ b/libiberty/gather-docs @@ -1,7 +1,7 @@ #!/usr/bin/perl # -*- perl -*- -# Copyright (C) 2001 +# Copyright (C) 2001, 2009, 2011 # Free Software Foundation # # This file is part of the libiberty library. @@ -17,8 +17,8 @@ # # You should have received a copy of the GNU Library General Public # License along with libiberty; see the file COPYING.LIB. If not, -# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. +# write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +# Boston, MA 02110-1301, USA. # # Originally written by DJ Delorie @@ -73,8 +73,8 @@ for $in (@ARGV) { if (/^\@def[a-z]*[a-wyz] /) { - ($name) = m/[^\(]* ([^\( \t\r\n]+) *\(/; - $name =~ s/[ ]*$//; + ($name) = m/[^\(]* ([^\( \t\r\n\@]+) *(\(|\@?$)/; + $name =~ s/[ ]*\@?$//; $key = $name; $key =~ tr/A-Z/a-z/; $key =~ s/[^a-z0-9]+/ /g; @@ -110,7 +110,7 @@ print "Writing $outfile\n" if $verbose; print OUT "\@c Automatically generated from *.c and others (the comments before\n"; print OUT "\@c each entry tell you which file and where in that file). DO NOT EDIT!\n"; print OUT "\@c Edit the *.c files, configure with --enable-maintainer-mode,\n"; -print OUT "\@c and let gather-docs build you a new copy.\n\n"; +print OUT "\@c run 'make stamp-functions' and gather-docs will build a new copy.\n\n"; for $key (sort keys %name) { print OUT "\@c $src_file{$key}:$src_line{$key}\n";