diff options
Diffstat (limited to 'contrib/expat/buildconf.sh')
-rwxr-xr-x | contrib/expat/buildconf.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/expat/buildconf.sh b/contrib/expat/buildconf.sh index 5edbc565bc27..5e2b3269c256 100755 --- a/contrib/expat/buildconf.sh +++ b/contrib/expat/buildconf.sh @@ -6,7 +6,7 @@ # \___/_/\_\ .__/ \__,_|\__| # |_| XML parser # -# Copyright (c) 2017-2021 Sebastian Pipping <sebastian@pipping.org> +# Copyright (c) 2017-2022 Sebastian Pipping <sebastian@pipping.org> # Copyright (c) 2018 Marco Maggi <marco.maggi-ipsu@poste.it> # Licensed under the MIT license: # @@ -40,7 +40,7 @@ set -e # not put SIZEOF_VOID_P in the eventual expat_config.h. patch_expat_config_h_in() { local filename="$1" - local sizeof_void_p_line_number="$(fgrep -n SIZEOF_VOID_P "${filename}" | awk -F: '{print $1}')" + local sizeof_void_p_line_number="$(grep -F -n SIZEOF_VOID_P "${filename}" | awk -F: '{print $1}')" [[ ${sizeof_void_p_line_number} =~ ^[0-9]+$ ]] # cheap assert local first_line_to_delete=$(( sizeof_void_p_line_number - 1 )) local last_line_to_delete=$(( sizeof_void_p_line_number + 1 )) |