1 # Bootstrap configuration.
3 # Copyright (C) 2006-2019 Free Software Foundation, Inc.
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.
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.
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/>.
19 GNULIB_REVISION=d271f868a8df9bbec29049d01e056481b7a1a263
21 # gnulib modules used by this package.
22 # mbswidth is used by gnulib-fix-width.diff's changes to argp rather than
40 gnulib_tool_option_extras="\
41 --no-conditional-dependencies \
46 source_base=grub-core/lib/gnulib
52 build-aux/config.guess
56 # Additional xgettext options to use. Use "\\\newline" to break lines.
57 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
76 # bootstrap doesn't give us a reasonable way to stop Automake from
77 # overwriting this, so we just copy our version aside and put it back later.
78 cp -a INSTALL INSTALL.grub
80 bootstrap_post_import_hook () {
82 for patchname in fix-base64 fix-null-deref fix-width no-abort; do
83 patch -d grub-core/lib/gnulib -p2 \
84 < "grub-core/lib/gnulib-patches/$patchname.patch"
87 0001-Support-POTFILES-shell \
88 0002-Handle-gettext_printf-shell-function \
89 0003-Make-msgfmt-output-in-little-endian \
90 0004-Use-SHELL-rather-than-bin-sh; do
92 < "po/gettext-patches/$patchname.patch"
94 FROM_BOOTSTRAP=1 ./autogen.sh
95 set +e # bootstrap expects this
98 bootstrap_epilogue () {
99 mv INSTALL.grub INSTALL