diff options
author | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-02 08:31:30 +0000 |
---|---|---|
committer | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-02 08:31:30 +0000 |
commit | 44566ddd49a0368c55abe0937ff3f684317e6f81 (patch) | |
tree | e8b83c3cf1a701c3cd1ef34abaa02a42f9ba5ce6 /gcc/fixinc/fixinc.svr4 | |
parent | f9a39df181c35fa9938e1d7f9dd839708b68ae52 (diff) | |
download | gcc-44566ddd49a0368c55abe0937ff3f684317e6f81.tar.gz |
Reworked (slightly) to process a list of directories
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23500 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc/fixinc.svr4')
-rwxr-xr-x | gcc/fixinc/fixinc.svr4 | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/gcc/fixinc/fixinc.svr4 b/gcc/fixinc/fixinc.svr4 index 46e07ce0ac9..46dec852f0d 100755 --- a/gcc/fixinc/fixinc.svr4 +++ b/gcc/fixinc/fixinc.svr4 @@ -31,9 +31,6 @@ # # 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 @@ -48,7 +45,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. @@ -56,7 +53,7 @@ case $LIB in /*) ;; *) - LIB=$ORIG_DIR/$LIB + cd $LIB; LIB=`${PWDCMD-pwd}` ;; esac @@ -71,7 +68,19 @@ else 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 @@ -1722,5 +1731,14 @@ __EOF__ 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 |