#! /bin/sh
# Copyright (C) 1996-2018 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
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# Make sure ":" works with files automake generates.
# This test is for multiple ":"s.
# See also sister test 'colon2.sh'.
. test-init.sh
cat > configure.ac < zardoz.am < two.in
: > three.in
$ACLOCAL
$AUTOMAKE
# Automake should have created zardoz.in.
test -f zardoz.in
# The generated file should refer to zardoz.in and zardoz.am, but
# never just "zardoz".
$FGREP 'zardoz.am' zardoz.in
$FGREP 'zardoz.in' zardoz.in
sed -e 's|zardoz\.am|zrdz.am|g' \
-e 's|zardoz\.in|zrdz.in|g' \
> zardoz.am <> two.in
echo "# $str3" >> three.in
$MAKE Makefile # For non-GNU make.
$MAKE testam testin testmk test2 test3
$MAKE distcheck
: