🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #107

gcc-1.35 nits

#107
From: Hallvard B Furuseth
Date: Sun, 18 Jun 1989 15:26
70 lines
2432 bytes
Fixincludes echoes several $1's instead of $1's value.

I have made fixincludes try $1 and $libdir/gcc-include before using
/usr/local/lib/gcc-include, and inserted an 'includes:' target in the
Makefile.

On Ultrix, /bin/sh -ec 'if false ....' aborts because the "false" in
	the if test is taken to be an error.  Replaced
	'if ...; then false; else ....; fi' in Makefile with
	'if !...; then ....; else false; fi'.

Patches:

*** Makefile~	Fri Apr 07 20:24:19 1989
--- Makefile	Fri Apr 14 20:24:19 1989
***************
*** 505,509
  	ln -s $(DIR)/config.gcc .
  	ln -s $(DIR)/move-if-change .
! 	if [ -f Makefile ] ; then false; else ln -s $(DIR)/Makefile . ; fi
  	-rm tm.h aux-output.c config.h md
  	make clean

--- 506,510 -----
  	ln -s $(DIR)/config.gcc .
  	ln -s $(DIR)/move-if-change .
! 	if [ ! -f Makefile ] ; then ln -s $(DIR)/Makefile . ; else false; fi
  	-rm tm.h aux-output.c config.h md
  	make clean
***************
*** 550,553 ****
--- 550,557 ----
  	rmdir temp
  
+ includes: force
+ 	libdir=$(libdir) fixincludes
+ 
+ 
  #In GNU Make, ignore whether `stage*' exists.
  .PHONY: stage1 stage2 stage3 clean realclean TAGS bootstrap

*** fixincludes~	Thu Apr 27 17:18:45 1989
--- fixincludes		Wed May 31 17:09:55 1989
***************
*** 7,11 ****
  
  # Directory in which to store the results.
! LIB=/usr/local/lib/gcc-include
  
  # Determine whether this system has symbolic links.
--- 7,11 ----
  
  # Directory in which to store the results.
! LIB=${1-${libdir-/usr/local/lib}/gcc-include}
  
  # Determine whether this system has symbolic links.
***************
*** 53,57 ****
  while [ $# != 0 ]; do
    # $1 is an old directory to copy, and $2 is the new directory to copy to.
!   echo 'Finding header files in $1:'
    cd $1
    files=`find . -type f -print`
--- 53,57 ----
  while [ $# != 0 ]; do
    # $1 is an old directory to copy, and $2 is the new directory to copy to.
!   echo "Finding header files in $1:"
    cd $1
    files=`find . -type f -print`
Technical Details
Message-ID: <8906181526.AA05662@sidhatt.uio.no>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!IFI.UIO.NO!hallvard

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!IFI.UIO.NO!hallvard
From: hallvard@IFI.UIO.NO (Hallvard B Furuseth)
Newsgroups: gnu.gcc.bug
Subject: gcc-1.35 nits
Message-ID: <8906181526.AA05662@sidhatt.uio.no>
Date: 18 Jun 89 15:26:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 70