diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-16 17:43:21 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-16 17:43:21 +0000 |
commit | 3354d06135697ca8167dd76698a62d6abd0b0ecc (patch) | |
tree | b0c410ed26a6acb25b6592f5e1cb2696d808ecf0 /gcc/fixinc | |
parent | 4c5da23833f4604c04fb829abf1a39ab6976e7b2 (diff) | |
download | ppe42-gcc-3354d06135697ca8167dd76698a62d6abd0b0ecc.tar.gz ppe42-gcc-3354d06135697ca8167dd76698a62d6abd0b0ecc.zip |
* Makefile.in: Allow for PWDCMD to override hardcoded pwd.
* config-ml.in: Likewise.
* configure: Likewise.
* configure.in: Likewise.
boehm-gc:
* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
* aclocal.m4: Regenerate.
* configure: Regenerate.
config:
* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
contrib:
* test_installed: Allow for PWDCMD to override hardcoded pwd.
* test_summary: Likewise.
gcc:
* Makefile.in: Allow for PWDCMD to override hardcoded pwd.
* configure.in: Likewise.
* fixinc/check.tpl: Likewise.
* fixinc/fixinc.dgux: Likewise.
* fixinc/fixinc.svr4: Likewise.
* fixinc/fixinc.winnt: Likewise.
* fixinc/fixincl.sh: Likewise.
* fixproto: Likewise.
* configure: Regenerate.
gcc/ada:
* Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
* Makefile.in: Likewise.
gcc/f:
* Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
gcc/java:
* Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
gcc/po:
* exgettext: Allow for PWDCMD to override hardcoded pwd.
gcc/treelang:
* Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
libf2c:
* Makefile.in: Allow for PWDCMD to override hardcoded pwd.
* aclocal.m4: Likewise.
* configure: Regenerate.
libjava:
* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
* configure.in: Likewise.
* aclocal.m4: Regenerate.
* configure: Regenerate.
libobjc:
* aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
* configure: Regenerate.
libstdc++-v3:
* Makefile.am: Allow for PWDCMD to override hardcoded pwd.
* acinclude.m4: Likewise.
* docs/html/Makefile: Likewise.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
zlib:
* configure.in: Allow for PWDCMD to override hardcoded pwd.
* configure: Regenerate.
* ChangeLog: Move entries to ChangeLog.gcj.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53523 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc')
-rw-r--r-- | gcc/fixinc/check.tpl | 10 | ||||
-rwxr-xr-x | gcc/fixinc/fixinc.dgux | 4 | ||||
-rwxr-xr-x | gcc/fixinc/fixinc.svr4 | 8 | ||||
-rw-r--r-- | gcc/fixinc/fixinc.winnt | 4 | ||||
-rwxr-xr-x | gcc/fixinc/fixincl.sh | 4 |
5 files changed, 15 insertions, 15 deletions
diff --git a/gcc/fixinc/check.tpl b/gcc/fixinc/check.tpl index a241d18d0e8..1f796fe8fd1 100644 --- a/gcc/fixinc/check.tpl +++ b/gcc/fixinc/check.tpl @@ -7,18 +7,18 @@ set -e TESTDIR=tests -TESTBASE=`cd $1;pwd` +TESTBASE=`cd $1;${PWDCMD-pwd}` [ -d ${TESTDIR} ] || mkdir ${TESTDIR} cd ${TESTDIR} -TESTDIR=`pwd` +TESTDIR=`${PWDCMD-pwd}` TARGET_MACHINE='*' -DESTDIR=`pwd`/res -SRCDIR=`pwd`/inc +DESTDIR=`${PWDCMD-pwd}`/res +SRCDIR=`${PWDCMD-pwd}`/inc FIND_BASE='.' VERBOSE=1 -INPUT=`pwd` +INPUT=`${PWDCMD-pwd}` ORIGDIR=${INPUT} export TARGET_MACHINE DESTDIR SRCDIR FIND_BASE VERBOSE INPUT ORIGDIR diff --git a/gcc/fixinc/fixinc.dgux b/gcc/fixinc/fixinc.dgux index d73d4e85a00..39a5b63f00e 100755 --- a/gcc/fixinc/fixinc.dgux +++ b/gcc/fixinc/fixinc.dgux @@ -95,7 +95,7 @@ if $LINKS; then for file in $files; do dest=`ls -ld $file | sed -n 's/.*-> //p'` if [ "$dest" ]; then - cwd=`pwd` + cwd=`${PWDCMD-pwd}` # In case $dest is relative, get to $file's dir first. cd ${INPUT} cd `echo ./$file | sed -n 's&[^/]*$&&p'` @@ -105,7 +105,7 @@ if $LINKS; then if [ $? = 0 ]; then cd $dest # X gets the dir that the link actually leads to. - x=`pwd` + x=`${PWDCMD-pwd}` # If link leads back into ${INPUT}, # make a similar link here. if expr $x : "${INPUT}/.*" > /dev/null; then diff --git a/gcc/fixinc/fixinc.svr4 b/gcc/fixinc/fixinc.svr4 index 4bb69fc523a..36906f97bee 100755 --- a/gcc/fixinc/fixinc.svr4 +++ b/gcc/fixinc/fixinc.svr4 @@ -1,7 +1,7 @@ #! /bin/sh # Install modified versions of certain ANSI-incompatible # native System V Release 4 system include files. -# Copyright (C) 1994, 1996, 1997, 1998, 2000 Free Software Foundation, Inc. +# Copyright (C) 1994, 1996, 1997, 1998, 2000, 2002 Free Software Foundation, Inc. # Contributed by Ron Guilmette (rfg@monkeys.com). # # This file is part of GNU CC. @@ -103,18 +103,18 @@ if $LINKS; then for file in $files; do dest=`ls -ld $file | sed -n 's/.*-> //p'` if [ "$dest" ]; then - cwd=`pwd` + cwd=`${PWDCMD-pwd}` # In case $dest is relative, get to $file's dir first. cd ${INPUT} cd `echo ./$file | sed -n 's&[^/]*$&&p'` - rwd=`pwd` + rwd=`${PWDCMD-pwd}` # Check that the target directory exists. # Redirections changed to avoid bug in sh on Ultrix. (cd $dest) > /dev/null 2>&1 if [ $? = 0 ]; then cd $dest # X gets the dir that the link actually leads to. - x=`pwd` + x=`${PWDCMD-pwd}` # If link leads back into ${INPUT}, # make a similar link here. if expr "$dest" : '[^/][^/]*' >/dev/null && [ ! -h $dest ]; then diff --git a/gcc/fixinc/fixinc.winnt b/gcc/fixinc/fixinc.winnt index 8fd6e53331f..de0f84746e2 100644 --- a/gcc/fixinc/fixinc.winnt +++ b/gcc/fixinc/fixinc.winnt @@ -35,7 +35,7 @@ # # See README-fixinc for more information. -ORIG_DIR=`pwd` +ORIG_DIR=`${PWDCMD-pwd}` # Directory containing the original header files. cd $2; SEDFILE=`${PWDCMD-pwd}`/fixinc-nt.sed @@ -65,7 +65,7 @@ if [ ! -d $LIB ]; then mkdir $LIB || exit 1 fi -ORIG_DIR=`pwd` +ORIG_DIR=`${PWDCMD-pwd}` # Make LIB absolute if it is relative. # Don't do this if not necessary, since may screw up automounters. diff --git a/gcc/fixinc/fixincl.sh b/gcc/fixinc/fixincl.sh index b84d7014d97..422fc5cbe6f 100755 --- a/gcc/fixinc/fixincl.sh +++ b/gcc/fixinc/fixincl.sh @@ -8,7 +8,7 @@ # # See README-fixinc for more information. # -# fixincludes copyright (c) 1998, 1999, 2000 +# fixincludes copyright (c) 1998, 1999, 2000, 2002 # The Free Software Foundation, Inc. # # fixincludes is free software. @@ -84,7 +84,7 @@ export target_canonical # # Define PWDCMD as a command to use to get the working dir # in the form that we want. -PWDCMD=pwd +PWDCMD=${PWDCMD-pwd} case "`$PWDCMD`" in //*) |