--- gcc/fixincludes 2018/04/24 16:45:52 1.1.1.5 +++ gcc/fixincludes 2018/04/24 16:48:31 1.1.1.8 @@ -8,9 +8,11 @@ # Directory in which to store the results. LIB=/usr/local/lib/gcc-include +mkdir $LIB > /dev/null 2>&1 + echo 'Finding header files:' cd /usr/include -files=`find . -print` +files=`find . -type f -print` echo 'Checking header files:' for file in $files; do if egrep -s '[ ]_IO[A-Z]*\(|#define._IO|CTRL' $file; then @@ -24,10 +26,14 @@ for file in $files; do ex ${LIB}/$file </dev/null 2>&1; then + echo Deleting ${LIB}/$file\; no fixes were needed. + rm ${LIB}/$file + fi fi fi done