Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod on existence of desti...
authorMark Mitchell <mark@codesourcery.com>
Tue, 21 Oct 2003 15:18:25 +0000 (15:18 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 21 Oct 2003 15:18:25 +0000 (15:18 +0000)
* Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
on existence of destination file.

From-SVN: r72758

gcc/ChangeLog
gcc/Makefile.in

index b0e7983100cb4bd434de06106d3d30626a8051bc..ae773f0ba997bd2c99c15e199dec969bef76af12 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-21  Mark Mitchell  <mark@codesourcery.com>
+
+       * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
+       on existence of destination file.
+
 2003-10-21  Jan Hubicka  <jh@suse.cz>
 
        * haifa-sched.c (choose_ready): Initialize index.
index 06dc4708d3466316d612c76c7d32377acb7d6723..8c42097db1ce68abab6cabebccdb3a99bba6dbb8 100644 (file)
@@ -2969,6 +2969,7 @@ $(DESTDIR)$(infodir)/%.info: $(docobjdir)/%.info installdirs
          for f in $(<)*; do \
            realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
            $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$realfile; \
+           chmod a-x $(DESTDIR)$(infodir)/$$realfile; \
          done; \
        else true; fi
        -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
@@ -2978,7 +2979,6 @@ $(DESTDIR)$(infodir)/%.info: $(docobjdir)/%.info installdirs
            else true; fi; \
          else true; fi; \
        else true; fi;
-       chmod a-x $(@)*
 
 # Install the man pages.
 install-man: installdirs $(GENERATED_MANPAGES) lang.install-man