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 14d10790fd871989a037f36e43bcc8f73891a3fb..0c9123b6cfbc3ac69798580bc25a2c5a396766c8 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 \