X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fdistcom2.sh;h=1f39b6679b7bca269cf6c589c4cbaf6fdb7c1e0d;hb=25194b6274e0c336c40cd1903565cdc7afaabf7c;hp=0b218f3d66bc0ce321a04a585af51c9330ba4b53;hpb=b21d68690612214d8edd810acf11880c3c0ad586;p=platform%2Fupstream%2Fautomake.git diff --git a/t/distcom2.sh b/t/distcom2.sh index 0b218f3..1f39b66 100755 --- a/t/distcom2.sh +++ b/t/distcom2.sh @@ -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 @@ -18,11 +18,10 @@ # Report from Pavel Roskin. Report of problems with '--no-force' from # Scott James Remnant (Debian #206299) -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC -AM_PROG_CC_C_O AC_CONFIG_FILES([subdir/Makefile]) AC_OUTPUT END @@ -44,6 +43,8 @@ $ACLOCAL for opt in '' --no-force; do + rm -f compile depcomp + $AUTOMAKE $opt --add-missing test -f compile @@ -51,8 +52,8 @@ for opt in '' --no-force; do for dir in . subdir; do # FIXME: the logic of this check and other similar ones in other - # FIXME: 'distcom*.test' files should be factored out in a common - # FIXME: subroutine in 'defs'... + # FIXME: 'distcom*.sh' files should be factored out in a common + # FIXME: subroutine in 'am-test-lib.sh'... sed -n -e " /^DIST_COMMON =.*\\\\$/ { :loop @@ -74,7 +75,7 @@ for opt in '' --no-force; do $FGREP ' $(top_srcdir)/depcomp ' subdir/dc.txt # The 'compile' script will be listed in the DIST_COMMON of the top-level - # Makefile because it's required in configure.ac (by AM_PROG_CC_C_O). + # Makefile because it's required in configure.ac (by AC_PROG_CC). $FGREP ' $(top_srcdir)/compile ' dc.txt || $FGREP ' compile ' dc.txt done