]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* bootstrap: Revert last change. There are less disruptive ways
authorJim Meyering <jim@meyering.net>
Thu, 7 Sep 2006 21:00:58 +0000 (21:00 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 7 Sep 2006 21:00:58 +0000 (21:00 +0000)
to mark these generated files as read-only.

ChangeLog
bootstrap

index 88fcebb6d3147b5070f0cb7e842590f14ff87f23..9624c8eabda3c7a8758bd2f8d5c4024c2a800001 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-09-07  Jim Meyering  <jim@meyering.net>
 
+       * bootstrap: Revert last change.  There are less disruptive ways
+       to mark these generated files as read-only.
+
        * src/c99-to-c89.diff: Update to have proper offsets.
 
 2006-09-06  Jim Meyering  <jim@meyering.net>
index 02bc9c23ca2c0f56fc2281d68e34a6c6bcc3352d..7afc71fc9ce9c1bff61d570c3b299a13bf70724f 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -214,10 +214,6 @@ esac
 
 
 slurp() {
- (
-  # Ensure that files created herein are read-only, to indicate that
-  # they are generated, and hence should not be modified directly.
-  umask a-w
   for dir in . `(cd $1 && find * -type d -print)`; do
     copied=
     sep=
@@ -229,7 +225,6 @@ slurp() {
       if test $file = Makefile.am; then
        copied=$copied${sep}gnulib.mk; sep=$nl
        echo "$0: Copying $1/$dir/$file to $dir/gnulib.mk ..." &&
-       rm -f $dir/gnulib.mk
        sed '/^[^#].*\/intl/s/^/#/' $1/$dir/$file >$dir/gnulib.mk
       elif test -r ${2-no/such/dir}/$dir/$file ||
           grep -F "/$file/" $dir/CVS/Entries 2>/dev/null |
@@ -239,7 +234,6 @@ slurp() {
        copied=$copied$sep$file; sep=$nl
        if test $file = gettext.m4; then
          echo "$0: patching m4/gettext.m4 to remove need for intl/* ..."
-         rm -f $dir/$file
          sed '
            /^AC_DEFUN(\[AM_INTL_SUBDIR],/,/^]/c\
              AC_DEFUN([AM_INTL_SUBDIR], [
@@ -249,7 +243,6 @@ slurp() {
              AC_DEFUN([gl_LOCK_EARLY], [])
          ' $1/$dir/$file >$dir/$file
        else
-         rm -f $dir/$file
          cp $1/$dir/$file $dir/$file
        fi
       fi || exit
@@ -261,7 +254,6 @@ slurp() {
       echo "$copied" | sort -u - $ig -o $ig || exit
     fi
   done
- )
 }
 
 
@@ -327,7 +319,6 @@ done
 
 # Create gettext configuration.
 echo "$0: Creating po/Makevars from po/Makevars.template ..."
-rm -f po/Makevars
 sed '
   /^EXTRA_LOCALE_CATEGORIES *=/s/=.*/= '"$EXTRA_LOCALE_CATEGORIES"'/
   /^MSGID_BUGS_ADDRESS *=/s/=.*/= bug-'"$package"'@gnu.org/
@@ -337,17 +328,14 @@ sed '
        '"$XGETTEXT_OPTIONS"' $${end_of_xgettext_options+}
   }
 ' po/Makevars.template >po/Makevars
-chmod a-w po/Makevars
 
 if test -d runtime-po; then
   # Likewise for runtime-po/Makevars, except also change a few other parameters.
-  rm -f runtime-po/Makevars
   sed '
     s/^\(DOMAIN\) *=.*/\1 = '"$package"'-runtime/
     s/^\(subdir\) *=.*/\1 = runtime-po/
     s/^\(XGETTEXT_OPTIONS\) *=.*/\1 = '"$XGETTEXT_OPTIONS_RUNTIME"'/
   ' <po/Makevars >runtime-po/Makevars
-  chmod a-w runtime-po/Makevars
 
   # Copy identical files from po to runtime-po.
   (cd po && cp -p Makefile.in.in *-quot *.header *.sed *.sin ../runtime-po)