From dbd659245c42bed0d8121ac0be34928acc3eb738 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 3 Dec 2002 19:05:01 +0000 Subject: [PATCH] Revert previous patch (the one for PR automake/379), it conflicts with PR/280. --- ChangeLog | 8 -------- automake.in | 4 ++-- tests/Makefile.am | 1 - tests/comment8.test | 47 --------------------------------------------- 4 files changed, 2 insertions(+), 58 deletions(-) delete mode 100755 tests/comment8.test diff --git a/ChangeLog b/ChangeLog index d2b748bc..780dddb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,11 +1,3 @@ -2002-12-03 Alexandre Duret-Lutz - - For PR automake/379: - * automake.in (read_am_file): Do not complain about backslashes - before blank lines when the backslash is in a comment. - * tests/Makefile.am (TESTS): Add comment8.test. - * tests/comment8.test: New file. - 2002-12-02 Charles Wilson * tests/gnits3.test (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): diff --git a/automake.in b/automake.in index 872e7b4e..7f3efc48 100755 --- a/automake.in +++ b/automake.in @@ -7628,7 +7628,7 @@ sub read_am_file ($$) elsif (/$WHITE_PATTERN/o) { err $where, "blank line following trailing backslash" - if $saw_bk && $prev_state != IN_COMMENT; + if $saw_bk; # Stick a single white line before the incoming macro or rule. $spacing = "\n"; $blank = 1; @@ -7691,7 +7691,7 @@ sub read_am_file ($$) # Stick a single white line before the incoming macro or rule. $spacing = "\n"; err $where, "blank line following trailing backslash" - if $saw_bk && $prev_state != IN_COMMENT; + if $saw_bk; } elsif (/$COMMENT_PATTERN/o) { diff --git a/tests/Makefile.am b/tests/Makefile.am index 70206d71..afa1c802 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -70,7 +70,6 @@ comment4.test \ comment5.test \ comment6.test \ comment7.test \ -comment8.test \ compile_f_c_cxx.test \ cond.test \ cond2.test \ diff --git a/tests/comment8.test b/tests/comment8.test deleted file mode 100755 index b7978319..00000000 --- a/tests/comment8.test +++ /dev/null @@ -1,47 +0,0 @@ -#! /bin/sh -# Copyright (C) 2002 Free Software Foundation, Inc. -# -# This file is part of GNU Automake. -# -# GNU Automake 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. -# -# GNU Automake 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 autoconf; see the file COPYING. If not, write to -# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - -# Test for PR/379. Do not print `blank line following trailing backslash' -# when the backslash is in a comment. People find this natural to comment -# out part of backslashed blocks this way. - -. ./defs || exit 1 - -set -e - -echo AC_PROG_CC >> configure.in - -cat > Makefile.am << 'EOF' -# foo \ - -test_SOURCES = a.c \ - c.c -# b.c \ - -bin_PROGRAMS = test \ - foo \ - baz -# bar \ - -EXTRA_DIST = mumble -EOF - -$ACLOCAL -$AUTOMAKE -- 2.43.5