1 # Bootstrap configuration.
3 # Copyright (C) 2006-2022 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=9f48fb992a3d7e96610c4ce8be969cff2d61a01b
21 # gnulib modules used by this package.
22 # mbswidth is used by fix-width.diff's changes to argp rather than directly.
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'\\\
77 # bootstrap doesn't give us a reasonable way to stop Automake from
78 # overwriting this, so we just copy our version aside and put it back later.
79 cp -a INSTALL INSTALL.grub
81 bootstrap_post_import_hook () {
84 # Instead of patching our gnulib and therefore maintaining a fork, submit
85 # changes to gnulib and update the hash above when they've merged. Do not
86 # add new patches here.
87 patch -d grub-core/lib/gnulib -p2 < grub-core/lib/gnulib-patches/fix-width.patch
90 0001-Support-POTFILES-shell \
91 0002-Handle-gettext_printf-shell-function \
92 0003-Make-msgfmt-output-in-little-endian \
93 0004-Use-SHELL-rather-than-bin-sh; do
95 < "po/gettext-patches/$patchname.patch"
97 FROM_BOOTSTRAP=1 ./autogen.sh
98 set +e # bootstrap expects this
101 bootstrap_epilogue () {
102 mv INSTALL.grub INSTALL