summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-08-24 23:54:54 +0200
committerJim Meyering <jim@meyering.net>2007-08-25 00:21:30 +0200
commitec06465572cb8676079a06daa2f10839b1ec116a (patch)
treefa2c45e380157f4541e700b06abe64ac08c6998a /bootstrap
parentee84700f7682a9d684b4cdb11d050bb09460a479 (diff)
downloadcoreutils-ec06465572cb8676079a06daa2f10839b1ec116a.tar.xz
bootstrap: Ignore more.
* bootstrap (symlink_to_dir): Add a directory name like uniwidth to e.g., lib/.gitignore. (slurp): Handle the sys_stat_.h -> sys mapping, too. * .hgignore: Remove this file, too. * Makefile.am (EXTRA_DIST): Remove .gitignore and .hgignore.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap19
1 files changed, 18 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index a9efa7be9..e3425fa41 100755
--- a/bootstrap
+++ b/bootstrap
@@ -302,7 +302,19 @@ symlink_to_dir()
# If the destination directory doesn't exist, create it.
# This is required at least for "lib/uniwidth/cjk.h".
dst_dir=`dirname "$dst"`
- test -d "$dst_dir" || mkdir -p "$dst_dir"
+ if ! test -d "$dst_dir"; then
+ mkdir -p "$dst_dir"
+
+ # If we've just created a directory like lib/uniwidth,
+ # tell version control system(s) it's ignorable.
+ # FIXME: for now, this does only one level
+ parent=`dirname "$dst_dir"`
+ for dot_ig in x $vc_ignore; do
+ test $dot_ig = x && continue
+ ig=$parent/$dot_ig
+ insert_sorted_if_absent $ig `echo "$dst_dir"|sed 's,.*/,,'`
+ done
+ fi
if $copy; then
{
@@ -453,6 +465,11 @@ slurp() {
# 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"
+
+ # For files like sys_stat_.h and sys_time_.h, record as
+ # ignorable the directory we might eventually create: sys/.
+ f=`echo "$copied"|sed 's/sys_.*_\.h$/sys/'`
+ insert_sorted_if_absent $ig "$f"
fi
done
done