test harness: improve catching of usage errors in script 'test-driver'
[platform/upstream/automake.git] / t / confdeps.sh
old mode 100755 (executable)
new mode 100644 (file)
index f508d45..a7865ad
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2001-2012 Free Software Foundation, Inc.
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
 
 # Make sure that config* files are properly regenerated.
 
-. ./defs || Exit 1
+. test-init.sh
 
 echo "FOO = foo" > Makefile.am
 
@@ -32,6 +32,6 @@ echo "$me: Not generated by aclocal ..."
 sed -n '3,$p' aclocal.m4 >aclocal.m4t
 mv -f aclocal.m4t aclocal.m4
 $AUTOMAKE
-grep '^\$(ACLOCAL_M4):' Makefile.in && Exit 1
+grep '^\$(ACLOCAL_M4):' Makefile.in && exit 1
 
 :