Added "recover"'ability.
authorK. Richard Pixley <rich@cygnus>
Wed, 4 Sep 1991 03:59:15 +0000 (03:59 +0000)
committerK. Richard Pixley <rich@cygnus>
Wed, 4 Sep 1991 03:59:15 +0000 (03:59 +0000)
bfd/.Sanitize

index ad2bd2a6844678cef4ccaa4fc2dd4e8b7d7a1967..c848c12f6cc52f3e4bb54071ea45f8d09887c500 100644 (file)
@@ -17,8 +17,6 @@
 
 Do-first:
 
-recover=aoutx.h
-
 echo Sanitizing `pwd`.
 
 # All files listed between the "Things-to-keep:" line and the
@@ -90,7 +88,11 @@ else
        rm -f new
        while grep -s start-sanitize-v9 aoutx.h ; do
                sed -e '/start-sanitize-v9/,/end-sanitize-v9/d' <aoutx.h >new
-               rm aoutx.h
+               if [ -n "${safe}" ] ; then
+                       mv aoutx.h .Recover
+               else
+                       rm aoutx.h
+               fi
                mv new aoutx.h
        done
 fi
@@ -100,7 +102,10 @@ echo Done in `pwd`.
 #
 #
 # $Log$
-# Revision 1.19  1991/09/03 22:21:30  rich
+# Revision 1.20  1991/09/04 03:59:15  rich
+# Added "recover"'ability.
+#
+# Revision 1.19  1991/09/03  22:21:30  rich
 # "recover" aoutx.h
 #
 # Revision 1.18  1991/08/29  00:35:06  gnu