Lose the empty directories only if they exist; otherwise Sanitize complains.
authorKen Raeburn <raeburn@cygnus>
Mon, 22 Sep 1997 00:27:36 +0000 (00:27 +0000)
committerKen Raeburn <raeburn@cygnus>
Mon, 22 Sep 1997 00:27:36 +0000 (00:27 +0000)
gas/.Sanitize

index ddf3bffc416cc47d7d0d9f12585913e95b1a1a43..64d0fce74cf193b281916daa668c5cc48256da1a 100644 (file)
 
 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