summaryrefslogtreecommitdiff
path: root/contrib/findssl.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-12-13 18:08:32 +1100
committerDarren Tucker <dtucker@zip.com.au>2004-12-13 18:08:32 +1100
commit442a383418dc3eb1809e66c966933071034d5325 (patch)
tree5dd97bd2c45a48aa656db3494f3352bf44169266 /contrib/findssl.sh
parentf0f90989fa7c22ab86ae7957b3af539584be375c (diff)
- (dtucker) [contrib/findssh.sh] Clean up on interrupt; from
amarendra.godbole at ge com.
Diffstat (limited to 'contrib/findssl.sh')
-rw-r--r--contrib/findssl.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/findssl.sh b/contrib/findssl.sh
index 0c08d4a1..716abced 100644
--- a/contrib/findssl.sh
+++ b/contrib/findssl.sh
@@ -1,5 +1,7 @@
#!/bin/sh
#
+# $Id: findssl.sh,v 1.3 2004/12/13 07:08:33 dtucker Exp $
+#
# findssl.sh
# Search for all instances of OpenSSL headers and libraries
# and print their versions.
@@ -9,10 +11,11 @@
# Written by Darren Tucker (dtucker at zip dot com dot au)
# This file is placed in the public domain.
#
-# $Id: findssl.sh,v 1.2 2003/11/21 12:48:56 djm Exp $
+# Release history:
# 2002-07-27: Initial release.
# 2002-08-04: Added public domain notice.
# 2003-06-24: Incorporated readme, set library paths. First cvs version.
+# 2004-12-13: Add traps to cleanup temp files, from Amarendra Godbole.
#
# "OpenSSL headers do not match your library" are usually caused by
# OpenSSH's configure picking up an older version of OpenSSL headers
@@ -64,6 +67,11 @@ CC=gcc
STATIC=-static
#
+# Cleanup on interrupt
+#
+trap 'rm -f conftest.c' INT HUP TERM
+
+#
# Set up conftest C source
#
rm -f findssl.log