bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI, make bootstrap augment existing .gitignore files


From: Jim Meyering
Subject: FYI, make bootstrap augment existing .gitignore files
Date: Thu, 19 Oct 2006 14:16:43 +0200

2006-10-19  Jim Meyering  <address@hidden>

        * bootstrap: Add names to each .gitignore file (if it exists)
        as well as to .cvsignore.

Index: bootstrap
===================================================================
RCS file: /fetish/cu/bootstrap,v
retrieving revision 1.23
diff -u -r1.23 bootstrap
--- bootstrap   14 Oct 2006 08:51:27 -0000      1.23
+++ bootstrap   16 Oct 2006 21:07:32 -0000
@@ -389,11 +389,13 @@
       fi || exit
     done

-    ig=$dir/.cvsignore
-    if test -n "$copied" && test -f $ig; then
-      echo "$copied" | sort -u - $ig | cmp -s - $ig ||
-      echo "$copied" | sort -u - $ig -o $ig || exit
-    fi
+    for dot_ig in .cvsignore .gitignore; do
+      ig=$dir/$dot_ig
+      if test -n "$copied" && test -f $ig; then
+       echo "$copied" | sort -u - $ig | cmp -s - $ig ||
+       echo "$copied" | sort -u - $ig -o $ig || exit
+      fi
+    done
   done
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]