This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: minor install nit
- To: Jeffrey A Law <law at cygnus dot com>
- Subject: Re: minor install nit
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Fri, 24 Jul 1998 19:35:10 +0200 (MET DST)
- cc: Nathan Sidwell <nathan at cs dot bris dot ac dot uk>, egcs-bugs at cygnus dot com, egcs-patches at cygnus dot com
[ 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*