-#!/bin/sh
+# !/bin/sh
#
# modified for dgux by hassey@dg-rtp.dg.com based on
#
#
# See README-fixinc for more information.
-# Directory containing the original header files.
-INPUT=${2-${INPUT-/usr/include}}
-
# Fail if no arg to specify a directory for the output.
if [ x$1 = x ]
then echo fixincludes: no output directory specified
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.
fi
echo 'Making directories:'
+# Directory containing the original header files.
+shift
+if [ $# -eq 0 ] ; then
+ set /usr/include
+fi
+
+INLIST="$@"
+
+for INPUT in ${INLIST} ; do
+cd ${ORIG_DIR}
cd ${INPUT}
+
if $LINKS; then
files=`ls -LR | sed -n s/:$//p`
else
done
fi
-cd ${ORIG_DIR}
+done
-exit 0
+if [ x${INSTALL_ASSERT_H} != x ] ;
+then
+ cd ${ORIG_DIR}
+ rm -f include/assert.h;
+ cp $(srcdir)/assert.h include/assert.h;
+ chmod a+r include/assert.h;
+fi
+exit 0
#
# See README-fixinc for more information.
-# Directory containing the original header files.
-INPUT=${2-${INPUT-/usr/include}}
-
# Fail if no arg to specify a directory for the output.
if [ x$1 = x ]
then echo fixincludes: no output directory specified
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.
/*)
;;
*)
- LIB=$ORIG_DIR/$LIB
+ cd $LIB; LIB=`${PWDCMD-pwd}`
;;
esac
echo 'Building fixincludes in ' ${LIB}
+# Directory containing the original header files.
+shift
+if [ $# -eq 0 ] ; then
+ set /usr/include
+fi
+
+INLIST="$@"
+
+for INPUT in ${INLIST} ; do
+cd ${ORIG_DIR}
+cd ${INPUT}
#
# Note: For Irix, we deliberately don't try to create the directory trees,
rm -f /tmp/$base
fi
+done
+
+if [ x${INSTALL_ASSERT_H} != x ] ;
+then
+ cd ${ORIG_DIR}
+ rm -f include/assert.h;
+ cp $(srcdir)/assert.h include/assert.h;
+ chmod a+r include/assert.h;
+fi
+
exit 0
#
# See README-fixinc for more information.
-# Directory containing the original header files.
-INPUT=${2-${INPUT-/usr/include}}
-
# Fail if no arg to specify a directory for the output.
if [ x$1 = x ]
then echo fixincludes: no output directory specified
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.
/*)
;;
*)
- LIB=$ORIG_DIR/$LIB
+ cd $LIB; LIB=`${PWDCMD-pwd}`
;;
esac
echo 'Finished fixinc.svr4'
echo 'Building fixincludes in ' ${LIB}
+# Directory containing the original header files.
+shift
+if [ $# -eq 0 ] ; then
+ set /usr/include
+fi
+
+INLIST="$@"
+
+for INPUT in ${INLIST} ; do
+cd ${ORIG_DIR}
+cd ${INPUT}
# Copied from fixincludes.
# Don't use or define the name va_list in stdio.h.
fi
fi
-exit 0
+done
+if [ x${INSTALL_ASSERT_H} != x ] ;
+then
+ cd ${ORIG_DIR}
+ rm -f include/assert.h;
+ cp $(srcdir)/assert.h include/assert.h;
+ chmod a+r include/assert.h;
+fi
+
+exit 0
#
# See README-fixinc for more information.
-# Directory containing the original header files.
-INPUT=${2-${INPUT-/usr/include}}
-
# Fail if no arg to specify a directory for the output.
if [ x$1 = x ]
then echo fixincludes: no output directory specified
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.
fi
echo 'Making directories:'
+# Directory containing the original header files.
+shift
+if [ $# -eq 0 ] ; then
+ set /usr/include
+fi
+
+INLIST="$@"
+
+for INPUT in ${INLIST} ; do
+cd ${ORIG_DIR}
cd ${INPUT}
+
if $LINKS; then
files=`ls -LR | sed -n s/:$//p`
else
done
fi
+done
+
+if [ x${INSTALL_ASSERT_H} != x ] ;
+then
+ cd ${ORIG_DIR}
+ rm -f include/assert.h;
+ cp $(srcdir)/assert.h include/assert.h;
+ chmod a+r include/assert.h;
+fi
+
exit 0
#
# See README-fixinc for more information.
-# Directory containing the original header files.
-INPUT=${2-${INPUT-/usr/include}}
-
# Fail if no arg to specify a directory for the output.
if [ x$1 = x ]
then echo fixincludes: no output directory specified
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.
/*)
;;
*)
- LIB=$ORIG_DIR/$LIB
+ cd $LIB; LIB=`${PWDCMD-pwd}`
;;
esac
fi
echo 'Making directories:'
+
+# Directory containing the original header files.
+shift
+if [ $# -eq 0 ] ; then
+ set /usr/include
+fi
+
+INLIST="$@"
+
+for INPUT in ${INLIST} ; do
+cd ${ORIG_DIR}
cd ${INPUT}
+
if $LINKS; then
files=`find . -follow -type d -print 2>/dev/null | sed '/^.$/d'`
else
chmod a+r ${LIB}/sys/byteorder.h
-exit 0
+done
+if [ x${INSTALL_ASSERT_H} != x ] ;
+then
+ cd ${ORIG_DIR}
+ rm -f include/assert.h;
+ cp $(srcdir)/assert.h include/assert.h;
+ chmod a+r include/assert.h;
+fi
+
+exit 0
rmdir $LIB/$file > NUL 2>&1
done
+if [ x${INSTALL_ASSERT_H} != x ] ;
+then
+ cd ${ORIG_DIR}
+ rm -f include/assert.h;
+ cp $(srcdir)/assert.h include/assert.h;
+ chmod a+r include/assert.h;
+fi
+
exit 0
#
# See README-fixinc for more information.
-# Directory containing the original header files.
-# (This was named INCLUDES, but that conflicts with a name in Makefile.in.)
-INPUT=${2-${INPUT-/usr/include}}
-
# Directory in which to store the results.
LIB=${1?"fixincludes: output directory not specified"}
mkdir $LIB || exit 1
fi
+ORIG_DIR=`${PWDCMD-pwd}`
+
+# Make LIB absolute if it is relative.
+# Don't do this if not necessary, since may screw up automounters.
+case $LIB in
+/*)
+ ;;
+*)
+ cd $LIB; LIB=`${PWDCMD-pwd}`
+ ;;
+esac
+
echo Building fixed headers in ${LIB}
+# Directory containing the original header files.
+shift
+if [ $# -eq 0 ] ; then
+ set /usr/include
+fi
+
+INLIST="$@"
+
+for INPUT in ${INLIST} ; do
+cd ${ORIG_DIR}
+cd ${INPUT}
# Some math.h files define struct exception, which conflicts with
# the class exception defined in the C++ file std/stdexcept.h. We
fi
fi
+done
+
+if [ x${INSTALL_ASSERT_H} != x ] ;
+then
+ cd ${ORIG_DIR}
+ rm -f include/assert.h;
+ cp $(srcdir)/assert.h include/assert.h;
+ chmod a+r include/assert.h;
+fi
+
exit 0