#
# 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.
#
# 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
//*)
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.
all_dirs=`find . -type l -print`
for file in $all_dirs
do
- if ls -lLd $file > /dev/null
- then :
- else rm -f $file
- test $VERBOSE -gt 3 && echo " removed $file"
- rmdir `dirname $file` > /dev/null && \
+ if test ! -d $file
+ then
+ rm -f $file
+ test $VERBOSE -gt 3 && echo " removed $file"
+ rmdir `dirname $file` > /dev/null && \
test $VERBOSE -gt 3 && \
echo " removed `dirname $file`"
fi
done
#
# # # # # # # # # # # # # # # # # # # # #
-
-if [ x${INSTALL_ASSERT_H} != x ] && [ -f ${srcdir}/assert.h ]
-then
- cd $ORIGDIR
- rm -f include/assert.h
- cp ${srcdir}/assert.h include/assert.h || exit 1
- chmod a+r include/assert.h
-fi