This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: minor install nit


[ I believe this should go into egcs-1.1 as well! ]

On Wed, 1 Jul 1998, Jeffrey A Law wrote:
>> Another minor nit is that I have to install into my local directory
>> structure, rather than /usr/local/whatever. I'd not setup a ../info/
>> directory, so there was no ../info/dir file. The install-info then bombs
>> out moaning about it.
> This may have been fixed by some recent changes to the install-info
> target in the gcc subdir.

Actually this has been _caused_ by those recent changes. Probably whoever
did those changes has a more current install-info than both Nathan and
myself?

  markab[157]:~% install-info --version
  GNU install-info (Texinfo 3.9) 1.2

In the meantime, Dave Love has made the corresponding commands
``fail-safe'', as I just noticed, so now you only get

  install-info: No such file or directory for /sw/swtest/egcs/info/dir
  install-info: No such file or directory for /sw/swtest/egcs/info/dir
  gmake[1]: [install-info] Error 1 (ignored)


In any case, my patch below is a cleaner solution in that it prevents
the errors instead of simply ignoring them.

Gerald


Fri Jul 24 18:59:56 1998  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>

	* Makefile.in (install-info): Only try to update the info
	directory file if it exists in the first place.

Index: Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.151.2.1
diff -c -3 -p -r1.151.2.1 Makefile.in
*** Makefile.in	1998/07/17 01:06:29	1.151.2.1
--- Makefile.in	1998/07/24 16:58:40
*************** install-info: doc installdirs lang.insta
*** 2384,2392 ****
--- 2384,2394 ----
  	    $(INSTALL_DATA) $$f $(infodir)/$$f; \
  	done
  	-if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
+ 	  if [ -f $(infodir)/dir ] ; then \
  	    for f in cpp.info gcc.info; do \
  		install-info --dir-file=$(infodir)/dir $(infodir)/$$f; \
  	    done; \
+ 	  else true; fi; \
  	else true; fi;
  	-chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info*



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]