summaryrefslogtreecommitdiff
path: root/textproc/uim/files/patch-autogen.sh
blob: 38c1ef7aa378175416c22e986e3561e75af7ae91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- autogen.sh.orig	2025-02-23 08:00:09 UTC
+++ autogen.sh
@@ -3,9 +3,6 @@ ${AUTORECONF:-autoreconf} --force --install "$@"
 set -e
 
 ${AUTORECONF:-autoreconf} --force --install "$@"
-# WORKAROUND: intltool-merge creates .intltool-merge-cache.lock but
-# it's not listed in mostlyclean in po/Makefile.in.in. It causes a
-# "make distcheck" failure.
-sed -i.bak -e 's/ \.intltool-merge-cache$/ .intltool-merge-cache{,.lock}/g' \
-  po/Makefile.in.in
-rm -f po/Makefile.in.in.bak
+if command -v intltoolize >/dev/null; then
+    intltoolize --copy --force --automake
+fi