2 # Copyright (C) 2008 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)
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 # Check all notrans_, dist_, nodist_ prefix combinations for MANS
18 # primary and install-man dependencies.
24 cat >>configure.
in <<'END'
28 cat > Makefile.am
<< 'EOF'
31 nodist_man_MANS
= baz
.3
32 notrans_man_MANS
= x-foo
.4
33 notrans_dist_man_MANS
= x-bar
.5
34 notrans_nodist_man_MANS
= x-baz
.6
36 dist_man5_MANS
= y-bar.man
37 nodist_man4_MANS
= y-baz.man
38 notrans_man3_MANS
= z-foo.man
39 notrans_dist_man2_MANS
= z-bar.man
40 notrans_nodist_man1_MANS
= z-baz.man
42 # These two are ignored
43 dist_notrans_man_MANS
= nosuch
.8
44 nodist_notrans_man9_MANS
= nosuch.man
60 test -f inst
/man
/man
1/gnu-foo
.1
61 test -f inst
/man
/man
2/gnu-bar
.2
62 test -f inst
/man
/man
3/gnu-baz
.3
63 test -f inst
/man
/man
4/x-foo
.4
64 test -f inst
/man
/man
5/x-bar
.5
65 test -f inst
/man
/man
6/x-baz
.6
66 test -f inst
/man
/man
7/gnu-y-foo
.7
67 test -f inst
/man
/man
5/gnu-y-bar
.5
68 test -f inst
/man
/man
4/gnu-y-baz
.4
69 test -f inst
/man
/man
3/z-foo
.3
70 test -f inst
/man
/man
2/z-bar
.2
71 test -f inst
/man
/man
1/z-baz
.1
72 if test -d inst
/man
/man8
; then (exit 1); else :; fi
73 if test -d inst
/man
/man9
; then (exit 1); else :; fi
87 grep '^install-man1:' Makefile.
in |
grep '\$(man_MANS)'
88 grep '^install-man2:' Makefile.
in |
grep '\$(dist_man_MANS)'
89 grep '^install-man3:' Makefile.
in |
grep '\$(nodist_man_MANS)'
90 grep '^install-man4:' Makefile.
in |
grep '\$(notrans_man_MANS)'
91 grep '^install-man5:' Makefile.
in |
grep '\$(notrans_dist_man_MANS)'
92 grep '^install-man6:' Makefile.
in |
grep '\$(notrans_nodist_man_MANS)'
94 if grep '^install-man8:' Makefile.
in; then exit 1; else :; fi
95 if grep '^install-man9:' Makefile.
in; then exit 1; else :; fi
97 .
/configure
--program-prefix=gnu-
--prefix "`pwd`"/inst
--mandir "`pwd`"/inst
/man
100 test `find inst/man -type f -print | wc -l` = 12
102 test `find inst/man -type f -print | wc -l` = 0
104 # Opportunistically test for installdirs.
107 test -d inst
/man
/man1
108 test -d inst
/man
/man2
109 test -d inst
/man
/man3
110 test -d inst
/man
/man4
111 test -d inst
/man
/man5
112 test -d inst
/man
/man6
113 test -d inst
/man
/man7
114 if test -d inst
/man
/man8
; then exit 1; else :; fi
115 if test -d inst
/man
/man9
; then exit 1; else :; fi