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]

Patch: change FIXINCL in fixincl.sh


This patch adds a backwards compatible adjustment to the definiton of
FIXINCL.  It uses ${ORIGDIR}/fixinc/fixincl if it exists, otherwise
it uses ${ORIGDIR}/fixincl.  The former path is needed for rebuilding
from source, but not when rebuilding headers in a binary package.  By
changing the value to the latter path, installation programs can change
directories to where fixincl is kept, then run fixincludes.  This
allows pre-built packages to be distributed without including
proprietary headers.

Wed May 16 16:04:41 PDT 2001  Brendan Conoboy <blc@redhat.com>

        * fixinc/fixincl.sh: FIXINCL=${ORIGDIR}/fixinc/fixincl
        if it exists, ${ORIGDIR}/fixincl otherwise.

Index: fixincl.sh
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/fixincl.sh,v
retrieving revision 1.35
diff -c -3 -p -r1.35 fixincl.sh
*** fixincl.sh	2001/05/11 17:03:02	1.35
--- fixincl.sh	2001/05/16 23:47:58
*************** esac
*** 96,102 ****
  # Original directory.
  ORIGDIR=`${PWDCMD}`
  export ORIGDIR
! FIXINCL=${ORIGDIR}/fixinc/fixincl
  export FIXINCL
  
  # Make LIB absolute only if needed to avoid problems with the amd.
--- 96,107 ----
  # Original directory.
  ORIGDIR=`${PWDCMD}`
  export ORIGDIR
! if test -x ${ORIGDIR}/fixinc/fixincl
! then
!     FIXINCL=${ORIGDIR}/fixinc/fixincl
! else
!     FIXINCL=${ORIGDIR}/fixincl
! fi
  export FIXINCL
  
  # Make LIB absolute only if needed to avoid problems with the amd.


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