changeset 1450:ee848b606cbd draft

Don't allow the same hook to be added more than once.
author Roy Marples <roy@marples.name>
date Sat, 17 Oct 2009 06:58:42 +0000
parents 235074297e4f
children 3252ce0df852
files configure
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Oct 16 21:36:51 2009 +0000
+++ b/configure	Sat Oct 17 06:58:42 2009 +0000
@@ -322,7 +322,10 @@
 		echo "no"
 	else
 		echo "$h"
-		HOOKS="$HOOKS${HOOKS:+ }$h"
+		case " $HOOKS " in
+		*" $h "*)	;;
+		*)		HOOKS="$HOOKS${HOOKS:+ }$h";;
+		esac
 	fi
 done
 cd ..