Make the "ungunk" logic a little more robust.
authorGeoff Thorpe <geoff@openssl.org>
Wed, 20 Feb 2002 05:09:22 +0000 (05:09 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Wed, 20 Feb 2002 05:09:22 +0000 (05:09 +0000)
demos/tunala/autoungunk.sh

index 14d1079..0c9123b 100755 (executable)
@@ -4,13 +4,13 @@
 # mess has been left in the directory thanks to autoconf, automake, and their
 # friends.
 
-if test -f Makefile; then
-       make distclean
-       rm -f Makefile
-fi
-
 if test -f Makefile.plain; then
+       if test -f Makefile; then
+               make distclean
+       fi
        mv Makefile.plain Makefile
+else
+       make clean
 fi
 
 rm -f aclocal.m4 config.* configure install-sh \