gas: avoid spurious failures in non-ELF targets in the SPARC testsuite.
[deliverable/binutils-gdb.git] / libiberty / gather-docs
index be4dbbfc1e2a3aab7f37a53742c06fc3bcec003c..2f1f3b1f699e62407f4864fd669af6cebbbc2d9a 100644 (file)
@@ -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.
@@ -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";
This page took 0.024961 seconds and 4 git commands to generate.