summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-10-20 10:08:05 +0000
committerJim Meyering <jim@meyering.net>2006-10-20 10:08:05 +0000
commit8d8af1248d16cdddae65e74a1ebf181e38aa2be1 (patch)
tree4d50e651235fc86ef15b2183abc55c126bf509f2 /bootstrap
parent64e75cf0ed19e9dcc3f6324d1d7c769783c0b6e0 (diff)
downloadcoreutils-8d8af1248d16cdddae65e74a1ebf181e38aa2be1.tar.xz
* bootstrap: Add names to each .gitignore file (if it exists)
as well as to .cvsignore.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap12
1 files changed, 7 insertions, 5 deletions
diff --git a/bootstrap b/bootstrap
index 07f2460a9..a5065aaa4 100755
--- a/bootstrap
+++ b/bootstrap
@@ -389,11 +389,13 @@ slurp() {
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
}