Commit bf8b268a by Ian Lance Taylor

Don't remove empty directories until after removing DONE files

From-SVN: r8113
parent d92f86fe
...@@ -1745,13 +1745,6 @@ for file in time.h sys/time.h ; do ...@@ -1745,13 +1745,6 @@ for file in time.h sys/time.h ; do
fi fi
done done
echo 'Removing unneeded directories:'
cd $LIB
files=`find . -type d -print | sort -r`
for file in $files; do
rmdir $LIB/$file > /dev/null 2>&1
done
if $LINKS; then if $LINKS; then
echo 'Making internal symbolic non-directory links' echo 'Making internal symbolic non-directory links'
cd ${INPUT} cd ${INPUT}
...@@ -1801,4 +1794,11 @@ echo 'Cleaning up DONE files.' ...@@ -1801,4 +1794,11 @@ echo 'Cleaning up DONE files.'
cd $LIB cd $LIB
find . -name DONE -exec rm -f '{}' ';' find . -name DONE -exec rm -f '{}' ';'
echo 'Removing unneeded directories:'
cd $LIB
files=`find . -type d -print | sort -r`
for file in $files; do
rmdir $LIB/$file > /dev/null 2>&1
done
exit 0 exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment