diff options
author | Jim Meyering <jim@meyering.net> | 2007-08-24 23:54:54 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-08-25 00:21:30 +0200 |
commit | ec06465572cb8676079a06daa2f10839b1ec116a (patch) | |
tree | fa2c45e380157f4541e700b06abe64ac08c6998a /bootstrap | |
parent | ee84700f7682a9d684b4cdb11d050bb09460a479 (diff) | |
download | coreutils-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-x | bootstrap | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -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 |