tests: cosmetic changes in t/extra-sources.sh
[platform/upstream/automake.git] / t / distcheck-hook2.sh
old mode 100755 (executable)
new mode 100644 (file)
index 93446b3..e430a53
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2011-2012 Free Software Foundation, Inc.
+# Copyright (C) 2011-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
@@ -18,7 +18,7 @@
 # Automake, and that a used-defined 'distcheck-hook' is *not* honored
 # in a subpackage Makefile.am.
 
-. ./defs || Exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_SUBDIRS([subpkg])
@@ -63,14 +63,14 @@ cd ..
 # For debugging.
 $FGREP 'distcheck-hook' Makefile.in subpkg/Makefile.in
 
-$FGREP 'distcheck-hook' subpkg/Makefile.in && Exit 1
+$FGREP 'distcheck-hook' subpkg/Makefile.in && exit 1
 $FGREP '$(MAKE) $(AM_MAKEFLAGS) distcheck-hook' Makefile.in
 grep '^distcheck-hook:' Makefile.in
 
 ./configure
 
 $MAKE
-$MAKE check && Exit 1
+$MAKE check && exit 1
 cd subpkg
 $MAKE check
 cd ..