diff options
author | Jim Meyering <meyering@redhat.com> | 2008-08-30 21:29:08 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-08-30 21:29:08 +0200 |
commit | 9385df57e3b955a1d029ddfef43b6fd6e7d37419 (patch) | |
tree | 35aca1be6352887a48aa818c41e9bdc7ee52f524 /bootstrap | |
parent | edd260625eeefbc4605922aa28305b31a7f15260 (diff) | |
download | idutils-9385df57e3b955a1d029ddfef43b6fd6e7d37419.tar.gz idutils-9385df57e3b955a1d029ddfef43b6fd6e7d37419.tar.bz2 idutils-9385df57e3b955a1d029ddfef43b6fd6e7d37419.zip |
* bootstrap: Update from coreutils.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -165,7 +165,7 @@ do usage exit;; --gnulib-srcdir=*) - GNULIB_SRCDIR=`expr "$option" : '--gnulib-srcdir=\(.*\)'`;; + GNULIB_SRCDIR=`expr "X$option" : 'X--gnulib-srcdir=\(.*\)'`;; --skip-po) SKIP_PO=t;; --force) @@ -273,7 +273,7 @@ update_po_files() { langs=`cd $ref_po_dir && echo *.po|sed 's/\.po//g'` test "$langs" = '*' && langs=x - for po in `cd $ref_po_dir && echo *.po|sed 's/\.po//g'`; do + for po in $langs; do case $po in x) continue;; esac new_po="$ref_po_dir/$po.po" cksum_file="$ref_po_dir/$po.s1" @@ -383,9 +383,13 @@ cp_mark_as_generated() if test -z "$c1"; then cmp -s "$cp_src" "$cp_dst" || { + # Copy the file first to get proper permissions if it + # doesn't already exist. Then overwrite the copy. echo "$0: cp -f $cp_src $cp_dst" && rm -f "$cp_dst" && - sed "s!$bt_regex/!!g" "$cp_src" > "$cp_dst" + cp "$cp_src" "$cp_dst-t" && + sed "s!$bt_regex/!!g" "$cp_src" > "$cp_dst-t" && + mv -f "$cp_dst-t" "$cp_dst" } else # Copy the file first to get proper permissions if it @@ -525,9 +529,8 @@ if test $with_gettext = yes; then cp configure.ac $bt2 && (cd $bt2 && autopoint && rm configure.ac) && slurp $bt2 $bt || exit - - rm -fr $bt $bt2 || exit fi +rm -fr $bt $bt2 || exit # Remove any dangling symlink matching "*.m4" or "*.[ch]" in some # gnulib-populated directories. Such .m4 files would cause aclocal to fail. @@ -610,7 +613,4 @@ m=gnulib-tests/gnulib.mk sed 's,\.\./\.\.,..,g' $m > $m-t mv -f $m-t $m -# Make tests executable. -chmod a+x gnulib-tests/test-*.sh - echo "$0: done. Now you can run './configure'." |