bootstrap: do not insert a blank line into each .gitignore file
authorJim Meyering <meyering@redhat.com>
Wed, 22 Jun 2011 06:21:05 +0000 (08:21 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 22 Jun 2011 06:33:32 +0000 (08:33 +0200)
* build-aux/bootstrap (sort_patterns): Filter out blank lines.

ChangeLog
build-aux/bootstrap

index 36d72ae..2663e32 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-22  Jim Meyering  <meyering@redhat.com>
+
+       bootstrap: do not insert a blank line into each .gitignore file
+       * build-aux/bootstrap (sort_patterns): Filter out blank lines.
+
 2011-06-21  Eric Blake  <eblake@redhat.com>
 
        perror: test for output mismatch
index 522ac70..b286beb 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Print a version string.
-scriptversion=2011-05-16.16; # UTC
+scriptversion=2011-06-22.06; # UTC
 
 # Bootstrap this package from checked-out sources.
 
@@ -290,7 +290,7 @@ sort_patterns() {
     P
     x
     s/^\n//
-  }'
+  }' | sed '/^$/d'
 }
 
 # If $STR is not already on a line by itself in $FILE, insert it,