#! /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
# Check that .c files derived from non-distributed .l sources
# are cleaned by "make clean", while .c files derived from
# distributed .l sources are cleaned by "make maintainer-clean".
-# See also sister test 'lex-clean-cxx.test'.
+# See also sister test 'lex-clean-cxx.sh'.
-required=yacc
-. ./defs || Exit 1
+required='cc lex'
+. test-init.sh
cat >> configure.ac << 'END'
AC_PROG_CC
test -f lexer.l
test -f lexer.c
test -f bar-lexer.c
- test ! -r baz.l
- test ! -r baz.c
- test ! -r qux-baz.c
+ test ! -e baz.l
+ test ! -e baz.c
+ test ! -e qux-baz.c
done
cp config.sav config.status
$MAKE maintainer-clean
ls -l
test -f lexer.l
-test ! -r lexer.c
-test ! -r bar-lexer.c
+test ! -e lexer.c
+test ! -e bar-lexer.c
: