OSDN Git Service

accept local directory for fixincl in fixincl.sh script
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 May 2001 02:02:37 +0000 (02:02 +0000)
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 May 2001 02:02:37 +0000 (02:02 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42234 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fixinc/fixincl.sh

index 6114ab1..f356ee5 100644 (file)
@@ -1,3 +1,9 @@
+2001-05-17  Brendan Conoboy <blc@cygnus.com>
+           Bruce Korb <bkorb@gnu.org>
+
+       * fixinc/fixincl.sh(FIXINC): accept local directory if fixincl not
+       found in fixinc directory.  Facilitates binary distributions.
+
 2001-05-17  Jeffrey Oldham  <oldham@codesourcery.com>
 
        * dbxout.c (dbxout_symbol_location): For CONCAT, skip types not
index fa2982f..b84d701 100755 (executable)
@@ -97,6 +97,13 @@ esac
 ORIGDIR=`${PWDCMD}`
 export ORIGDIR
 FIXINCL=${ORIGDIR}/fixinc/fixincl
+if [ ! -x $FIXINCL ] ; then
+  FIXINCL=${ORIGDIR}/fixincl
+  if [ ! -x $FIXINCL ] ; then
+    echo "Cannot find working fixincl" >&2
+    exit 1
+  fi
+fi
 export FIXINCL
 
 # Make LIB absolute only if needed to avoid problems with the amd.