doc: typos in test file.
[automake.git] / t / toplevelmd.sh
blob0e4a6af76296a322358a29ae396e14cdcb7786c8
1 #! /bin/sh
2 # Copyright (C) 2003-2024 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 2, 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 <https://www.gnu.org/licenses/>.
17 # Check that the top-level files (INSTALL, NEWS, README-alpha, etc.)
18 # can be .md, or not. (Based on alpha2.sh.)
20 . test-init.sh
22 cat > configure.ac << 'END'
23 AC_INIT([alpha], [1.0b])
24 AM_INIT_AUTOMAKE([readme-alpha])
25 AC_CONFIG_FILES([Makefile sub/Makefile])
26 AC_OUTPUT
27 END
29 cat > Makefile.am << 'END'
30 SUBDIRS = sub
31 check-local: distdir
32 for f in AUTHORS ChangeLog INSTALL NEWS README THANKS; do \
33 test -f $(distdir)/$$f.md; done
34 test -f $(distdir)/COPYING
35 test -f $(distdir)/README-alpha.md
36 test ! -f $(distdir)/sub/README.md
37 test ! -f $(distdir)/sub/README-alpha.md # not distributed
38 : > works
39 END
41 mkdir sub
42 : > sub/Makefile.am
44 # do both md and non-md.
45 : > README-alpha.md
46 : > sub/README-alpha.md
47 : > sub/README
49 # top level
50 : > AUTHORS.md
51 : > ChangeLog.md
52 : > INSTALL.md
53 : > NEWS.md
54 : > README.md
55 : > THANKS.md
57 # not md
58 : > COPYING
61 $ACLOCAL
62 $AUTOCONF
63 $AUTOMAKE
64 ./configure
65 $MAKE check
66 test -f works