summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2007-07-21 15:00:54 +0200
committerJim Meyering <jim@meyering.net>2007-07-21 15:00:54 +0200
commita0c8d0e0fe514c0c9b37ced9b4f96d3e076de44b (patch)
treeb79915ca828dfdda5e84b4ac6a8439146620dc9b
parent366aaf59dcde9d3700346a94562151db6afb3be4 (diff)
downloadcoreutils-a0c8d0e0fe514c0c9b37ced9b4f96d3e076de44b.tar.xz
* bootstrap (slurp): Work even in environments where "ls" defaults
to "ls -A". Put in a FIXME, though, since the current code does not slurp files whose names start with ".", and this looks like it might be a troublesome area.
-rw-r--r--ChangeLog7
-rwxr-xr-xbootstrap6
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c7ba8316b..3b144b3f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
+
+ * bootstrap (slurp): Work even in environments where "ls" defaults
+ to "ls -A". Put in a FIXME, though, since the current code does
+ not slurp files whose names start with ".", and this looks like
+ it might be a troublesome area.
+
2007-07-20 Jim Meyering <jim@meyering.net>
Document and add a test for today's sort bug fix.
diff --git a/bootstrap b/bootstrap
index 442309c87..bad0cbe7e 100755
--- a/bootstrap
+++ b/bootstrap
@@ -391,7 +391,11 @@ slurp() {
for dir in . `(cd $1 && find * -type d -print)`; do
copied=
sep=
- for file in `ls $1/$dir`; do
+ for file in `ls -a $1/$dir`; do
+ case $file in
+ .|..) continue;;
+ .*) continue;; # FIXME: should all file names starting with "." be ignored?
+ esac
test -d $1/$dir/$file && continue
for excluded_file in $excluded_files; do
test "$dir/$file" = "$excluded_file" && continue 2