1 | # Bootstrap configuration.
|
---|
2 |
|
---|
3 | # Copyright (C) 2006-2022 Free Software Foundation, Inc.
|
---|
4 |
|
---|
5 | # This program is free software: you can redistribute it and/or modify
|
---|
6 | # it under the terms of the GNU General Public License as published by
|
---|
7 | # the Free Software Foundation; either version 3 of the License, or
|
---|
8 | # (at your option) any later version.
|
---|
9 |
|
---|
10 | # This program is distributed in the hope that it will be useful,
|
---|
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | # GNU General Public License for more details.
|
---|
14 |
|
---|
15 | # You should have received a copy of the GNU General Public License
|
---|
16 | # along with this program. If not, see <https://www.gnu.org/licenses/>.
|
---|
17 |
|
---|
18 | avoided_gnulib_modules='
|
---|
19 | --avoid=lock-tests
|
---|
20 | '
|
---|
21 |
|
---|
22 | # gnulib modules used by this package.
|
---|
23 | gnulib_modules='
|
---|
24 | acl
|
---|
25 | alloca
|
---|
26 | stdalign
|
---|
27 | binary-io
|
---|
28 | btowc
|
---|
29 | c-ctype
|
---|
30 | closeout
|
---|
31 | dfa
|
---|
32 | eloop-threshold
|
---|
33 | extensions
|
---|
34 | fwriting
|
---|
35 | getdelim
|
---|
36 | gettext-h
|
---|
37 | git-version-gen
|
---|
38 | gitlog-to-changelog
|
---|
39 | idx
|
---|
40 | ignore-value
|
---|
41 | localcharset
|
---|
42 | manywarnings
|
---|
43 | mbrlen
|
---|
44 | mbrtowc
|
---|
45 | mbsinit
|
---|
46 | memchr
|
---|
47 | memrchr
|
---|
48 | minmax
|
---|
49 | mkostemp
|
---|
50 | obstack
|
---|
51 | perl
|
---|
52 | progname
|
---|
53 | readlink
|
---|
54 | readme-release
|
---|
55 | regex
|
---|
56 | rename
|
---|
57 | selinux-h
|
---|
58 | ssize_t
|
---|
59 | stat-macros
|
---|
60 | stdbool
|
---|
61 | strerror
|
---|
62 | strverscmp
|
---|
63 | unlocked-io
|
---|
64 | update-copyright
|
---|
65 | verify
|
---|
66 | version-etc-fsf
|
---|
67 | wcrtomb
|
---|
68 | wctob
|
---|
69 | xalloc
|
---|
70 | '
|
---|
71 | gnulib_name=libsed
|
---|
72 |
|
---|
73 | checkout_only_file=
|
---|
74 | [email protected]
|
---|
75 |
|
---|
76 | # Additional xgettext options to use. Use "\\\newline" to break lines.
|
---|
77 | XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
|
---|
78 | --flag=asnprintf:3:c-format\\\
|
---|
79 | --flag=asprintf:2:c-format\\\
|
---|
80 | --flag=error:3:c-format\\\
|
---|
81 | --flag=error_at_line:5:c-format\\\
|
---|
82 | --flag=vasnprintf:3:c-format\\\
|
---|
83 | --flag=vasprintf:2:c-format\\\
|
---|
84 | --flag=wrapf:1:c-format\\\
|
---|
85 | --from-code=UTF-8\\\
|
---|
86 | '
|
---|
87 |
|
---|
88 | gnulib_tool_option_extras="--tests-base=gnulib-tests --with-tests --symlink\
|
---|
89 | --makefile-name=gnulib.mk --automake-subdir
|
---|
90 | $avoided_gnulib_modules
|
---|
91 | "
|
---|
92 |
|
---|
93 | # Build prerequisites
|
---|
94 | buildreq="\
|
---|
95 | autoconf 2.64
|
---|
96 | automake 1.11.2
|
---|
97 | autopoint -
|
---|
98 | gettext 0.19.2
|
---|
99 | git 1.4.4
|
---|
100 | gzip -
|
---|
101 | makeinfo 6.1
|
---|
102 | perl 5.5
|
---|
103 | rsync -
|
---|
104 | tar -
|
---|
105 | "
|
---|
106 |
|
---|
107 | bootstrap_post_import_hook ()
|
---|
108 | {
|
---|
109 | # Automake requires that ChangeLog exist.
|
---|
110 | touch ChangeLog || return 1
|
---|
111 | }
|
---|
112 |
|
---|
113 | bootstrap_epilogue()
|
---|
114 | {
|
---|
115 | perl -pi -e "s/\@PACKAGE\@/$package/g" README-release
|
---|
116 |
|
---|
117 | # Since this is a "GNU" package, replace this line
|
---|
118 | # if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null \
|
---|
119 | # | grep -v 'libtool:' >/dev/null; then
|
---|
120 | # with this:
|
---|
121 | # if true; then
|
---|
122 | # Why? That pipeline searches all files in $(top_srcdir), and if you
|
---|
123 | # happen to have large files (or apparently large sparse files), the
|
---|
124 | # first grep may well run out of memory.
|
---|
125 | perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
|
---|
126 | po/Makefile.in.in
|
---|
127 |
|
---|
128 | # Add dummy 'install-html' target, required for packages using
|
---|
129 | # non-recursive makefiles with older gettext.
|
---|
130 | # See https://debbugs.gnu.org/25690
|
---|
131 | if ! grep -w 'install-html' po/Makefile.in.in ; then
|
---|
132 | printf 'install-%s:;\n' dvi ps pdf html >> po/Makefile.in.in
|
---|
133 | fi
|
---|
134 | }
|
---|