This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: change FIXINCL in fixincl.sh
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch: change FIXINCL in fixincl.sh
- From: Brendan Conoboy <blc at cygnus dot com>
- Date: Wed, 16 May 2001 17:05:15 -0700 (PDT)
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.