diff options
Diffstat (limited to 'gcc/fixinc/inclhack.tpl')
-rw-r--r-- | gcc/fixinc/inclhack.tpl | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/fixinc/inclhack.tpl b/gcc/fixinc/inclhack.tpl index f5153bf0892..587a8e53143 100644 --- a/gcc/fixinc/inclhack.tpl +++ b/gcc/fixinc/inclhack.tpl @@ -403,7 +403,7 @@ find . -name DONE -exec rm -f '{}' ';' echo 'Removing unneeded directories:' cd $LIB -all_dirs=`find . -type d -print | sort -r` +all_dirs=`find . -type d \! -name '.' -print | sort -r` for file in $all_dirs; do rmdir $LIB/$file > /dev/null 2>&1 done @@ -416,11 +416,13 @@ done # # # # # # # # # # # # # # # # # # # # # # -cd $ORIGDIR -rm -f include/assert.h -cp ${srcdir}/assert.h include/assert.h || exit 1 -chmod a+r include/assert.h -[= +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[= # Make the output file executable # =][= |