OSDN Git Service

* Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Oct 2003 15:18:25 +0000 (15:18 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Oct 2003 15:18:25 +0000 (15:18 +0000)
on existence of destination file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72758 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/Makefile.in

index b0e7983..ae773f0 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 06dc470..8c42097 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