From: Bruno Haible Date: Thu, 5 Feb 2026 23:40:01 +0000 (+0100) Subject: build: Avoid build failures when building from the git repository. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=633b7fdef68b660802ce190f1cf0ab64eb8c3e5e;p=thirdparty%2Fgettext.git build: Avoid build failures when building from the git repository. Reported by Satadru Pramanik at . * gettext-tools/man/Makefile.am ($(man_MAN1MISC)): Use a temporary file, so that we don't run 'patch' on a nonexistent file or on an already patched result. --- diff --git a/gettext-tools/man/Makefile.am b/gettext-tools/man/Makefile.am index 3ca1c2ff0..48ef88f9d 100644 --- a/gettext-tools/man/Makefile.am +++ b/gettext-tools/man/Makefile.am @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/man subdirectory of GNU gettext -## Copyright (C) 2001-2025 Free Software Foundation, Inc. +## Copyright (C) 2001-2026 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -145,8 +145,9 @@ autopoint.1: autopoint.x ../autotools/autopoint.in $(man_MAN1MISC): help2man $(top_srcdir)/../.version progname=`echo $@ | sed -e 's/\.in$$//' -e 's/\.1$$//'`; \ IN_HELP2MAN=1 $(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" \ - ../misc/$${progname} $(srcdir)/$${progname}.x $@ - patch $@ < $(srcdir)/po-fetch.1.diff + ../misc/$${progname} $(srcdir)/$${progname}.x po-fetch.tmp.1 + patch po-fetch.tmp.1 < $(srcdir)/po-fetch.1.diff + mv po-fetch.tmp.1 po-fetch.1 po-fetch.1: po-fetch.x ../misc/po-fetch.in po-fetch.1.diff