OSDN Git Service

2004-08-05 Michael Chastain <mec.gnu@mindspring.com>
authorchastain <chastain@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Aug 2004 19:29:09 +0000 (19:29 +0000)
committerchastain <chastain@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Aug 2004 19:29:09 +0000 (19:29 +0000)
PR bootstrap/14893
* Make-lang.in (java.install-man): Install from either build
tree or source tree, whichever has the file first.

(See the PR for more information and the approval from Alexandre Oliva.
 This fix has been in gcc-3_4-branch for about four months).

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

gcc/java/ChangeLog
gcc/java/Make-lang.in

index e2a7684..23fe7b2 100644 (file)
@@ -1,3 +1,9 @@
+2004-08-05  Michael Chastain  <mec.gnu@mindspring.com>
+
+       PR bootstrap/14893
+       * Make-lang.in (java.install-man): Install from either build
+       tree or source tree, whichever has the file first.
+
 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
 
        * jcf-parse.c (get_constant): Adjust force_fit_type call.
index 2944383..afc22d8 100644 (file)
@@ -407,7 +407,13 @@ java.install-man: installdirs \
          tool_transformed_name=`echo $$tool|sed '$(program_transform_name)'`; \
          man_name=$(DESTDIR)$(man1dir)/$${tool_transformed_name}$(man1ext); \
          rm -f $$man_name ; \
-         $(INSTALL_DATA) doc/$${tool}.1 $$man_name; \
+         for source_name in doc/$${tool}.1 $(srcdir)/doc/$${tool}.1 ; do \
+           if test -f $$source_name; then \
+             $(INSTALL_DATA) $$source_name $$man_name; \
+             break; \
+             else : ; \
+           fi; \
+         done ; \
          chmod a-x $$man_name ; \
        done