commit: 4ca73a1093ec008b5dc7c2c1161c81833f75bcc7
parent f7226b138cf34131f0e355192f1d971a1160a89c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 17 Jul 2023 09:21:19 +0200
configure: Use po4a-updatepo when po file already exists
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
@@ -308,7 +308,10 @@ rule xgettext
command = xgettext --keyword=_ --language=C --from-code=UTF-8 -o \$out --add-comments --sort-output --foreign-user --no-location --no-wrap \$GETTEXT_OPTS \$in && ed -s \$out <po/pot_license.ed
rule xgettext_man
- command = po4a-gettextize --format man -M utf-8 --master \$in \$GETTEXT_OPTS --po \$out && ed -s \$out <po/pot_license.ed
+ command = if test -e \$out; $
+then po4a-updatepo --format man -M utf-8 --master \$in \$GETTEXT_OPTS --po \$out && ed -s \$out <po/pot_license.ed;$
+else po4a-gettextize --format man -M utf-8 --master \$in \$GETTEXT_OPTS --po \$out && ed -s \$out <po/pot_license.ed;$
+fi
rule cc_exe
command = \$CC -std=c11 \$CFLAGS -include configure.h \$DEPS_cflags -o \$out \$in \$LDFLAGS \$DEPS_libs