bootstrap: generate more names and fix a bug
authorJim Meyering <jim@meyering.net>
Thu, 23 Aug 2007 07:50:58 +0000 (09:50 +0200)
committerJim Meyering <jim@meyering.net>
Thu, 23 Aug 2007 08:57:07 +0000 (10:57 +0200)
* bootstrap (slurp): Don't test for existence of $copied,
which is usually a newline-separated list of file names.
When generating ignorable names, also map .sin to .sed,
.gperf to .c, and .y to .c.

ChangeLog
bootstrap

index bd403da..ea436cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-08-23  Jim Meyering  <jim@meyering.net>
 
+       bootstrap: generate more ignorable names
+       * bootstrap (slurp): When generating ignorable names, also map
+       .sin to .sed, .gperf to .c, and .y to .c.
+
        * Makefile.maint (patch-check): Don't remove temporaries upon failure.
 
 2007-08-22  Jim Meyering  <jim@meyering.net>
index 413ee7f..24a1964 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -435,7 +435,8 @@ slurp() {
        # If an ignored file name ends with _.h, then also add
        # the name with just ".h".  Many gnulib headers are generated,
        # e.g., stdint_.h -> stdint.h, dirent_.h ->..., etc.
-       f=`echo "$copied"|sed 's/_\.h$/.h/'`
+       # Likewise for .gperf -> .h, .y -> .c, and .sin -> .sed
+       f=`echo "$copied"|sed 's/_\.h$/.h/;s/\.sin$/.sed/;s/\.y$/.c/;s/\.gperf$/.h/'`
        insert_sorted_if_absent $ig "$f"
       fi
     done