From: Ken Raeburn Date: Mon, 22 Sep 1997 00:27:36 +0000 (+0000) Subject: Lose the empty directories only if they exist; otherwise Sanitize complains. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f4d2212efb29e0a610010072bf74cebf0b24524;p=binutils-gdb.git Lose the empty directories only if they exist; otherwise Sanitize complains. --- diff --git a/gas/.Sanitize b/gas/.Sanitize index ddf3bffc416..64d0fce74cf 100644 --- a/gas/.Sanitize +++ b/gas/.Sanitize @@ -15,6 +15,13 @@ Do-first: +lose_these_too="" +for d in obsolete regress regress.m68k testscripts ; do + if [ -d $d ]; then + lose_these_too="${lose_these_too} $d" + fi +done + # All files listed between the "Things-to-keep:" line and the # "Files-to-sed:" line will be kept. All other files will be removed. # Directories listed in this section will have their own Sanitize @@ -110,11 +117,6 @@ write.h Things-to-lose: -obsolete -regress -regress.m68k -testscripts - Do-last: if ( echo $* | grep keep\-gm > /dev/null ) ; then