]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Avoid build failures when building from the git repository. master
authorBruno Haible <bruno@clisp.org>
Thu, 5 Feb 2026 23:40:01 +0000 (00:40 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 5 Feb 2026 23:40:01 +0000 (00:40 +0100)
Reported by Satadru Pramanik <satadru@gmail.com>
at <https://savannah.gnu.org/bugs/?67999>.

* 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.

gettext-tools/man/Makefile.am

index 3ca1c2ff0c32f3c9ecdca0e28e6ac71a90b1a634..48ef88f9db736b18c1bf8858cc76cf59f64bf765 100644 (file)
@@ -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