Reword the copyright notices to match what's suggested in GPLv3.
[platform/upstream/automake.git] / tests / maintclean.test
1 #! /bin/sh
2 # Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
3 #
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.
8 #
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.
13 #
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/>.
16
17 # Make sure distclean and maintainer-clean erase the right files.
18
19 . ./defs || exit 1
20
21 set -e
22
23 cat >> configure.in << 'END'
24 AC_CONFIG_FILES(bar)
25 AC_OUTPUT
26 END
27
28 cat > Makefile.am <<'END'
29 noinst_DATA = foo.c
30
31 foo.c:
32         touch foo.c
33
34 MAINTAINERCLEANFILES = foo.c
35
36 END
37
38 touch bar.in
39
40 $ACLOCAL
41 $AUTOCONF
42 $AUTOMAKE
43
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=:
49 fi
50
51 # Since we don't require Yacc, make sure it's not used.
52 ./configure YACC=false
53 test -f bar
54
55 $MAKE
56 test -f foo.c
57
58 $MAKE distclean
59 test ! -f bar
60 test ! -f Makefile
61 test ! -f config.status
62 test -f foo.c
63 $test_cache
64
65 ./configure
66 test -f bar
67
68 $MAKE foo.c
69 test -f foo.c
70
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