Tag
Hash :
659dd9ae
Author :
Date :
2002-01-04T11:06:15
* automake.in (read_am_file): Thinko in "comment following trailing backslash" detection. * tests/comment5.test: Test for this too.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
#! /bin/sh
# Test for PR/280.
# (Automake should complain about trailing backslashes in comments.)
. $srcdir/defs || exit 1
set -e
cat >> configure.in <<'EOF'
AC_OUTPUT
EOF
cat > Makefile.am << 'EOF'
all-local:
@echo ${var}
# a comment with backslash \
var = foo
EOF
$ACLOCAL
$AUTOMAKE && exit 1
## Here is a second test because head comments are
## handled differently in Automake 1.5.
cat > Makefile.am << 'EOF'
# a comment with backslash \
all-local:
@echo ${var}
var = foo
EOF
$AUTOMAKE && exit 1
## Make sure backslashes are still allowed within a comment.
## This usually happens when commenting out a Makefile rule.
cat > Makefile.am << 'EOF'
all-local:
@echo ${var}
# a comment with backslash \
# but terminated by a line without backslash
var = foo
EOF
$AUTOMAKE