Reword the copyright notices to match what's suggested in GPLv3.
[automake/plouj.git] / tests / maintclean.test
blob56867c3d306fbc4ba7feabab840a51892f9bd2bc
1 #! /bin/sh
2 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Make sure distclean and maintainer-clean erase the right files.
19 . ./defs || exit 1
21 set -e
23 cat >> configure.in << 'END'
24 AC_CONFIG_FILES(bar)
25 AC_OUTPUT
26 END
28 cat > Makefile.am <<'END'
29 noinst_DATA = foo.c
31 foo.c:
32 touch foo.c
34 MAINTAINERCLEANFILES = foo.c
36 END
38 touch bar.in
40 $ACLOCAL
41 $AUTOCONF
42 $AUTOMAKE
44 # Users can disable autom4te.cache.
45 if test -d autom4te.cache; then
46 test_cache='test -d autom4te.cache'
47 else
48 test_cache=:
51 # Since we don't require Yacc, make sure it's not used.
52 ./configure YACC=false
53 test -f bar
55 $MAKE
56 test -f foo.c
58 $MAKE distclean
59 test ! -f bar
60 test ! -f Makefile
61 test ! -f config.status
62 test -f foo.c
63 $test_cache
65 ./configure
66 test -f bar
68 $MAKE foo.c
69 test -f foo.c
71 $MAKE maintainer-clean
72 test ! -f bar
73 test ! -f foo.c
74 test ! -f Makefile
75 test ! -f config.status
76 test ! -d autom4te.cache