mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 15:55:47 -05:00
Build: automatically generate list of files to be translated in configure
configure is easiest option how to automatically generate POTFILES.in. Attempts to add it to po/Makefile* have big potential to create cyclic depedencies and cause other trouble. Given how rare operation adding a source file is, I think it is sufficient to document that configure needs to be run again after adding a source file with translatable strings. https://fedorahosted.org/freeipa/ticket/6418 Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
166257ec5b
commit
9ef5a7de78
@@ -283,6 +283,21 @@ AC_SUBST(IPA_SYSCONF_DIR)
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Translations
|
||||
dnl ---------------------------------------------------------------------------
|
||||
# POTFILES.in needs to be created before calling AM_GNU_GETTEXT
|
||||
AC_CONFIG_COMMANDS([po/POTFILES.in],
|
||||
[find_start_pwd=`pwd` && dnl
|
||||
cd "${ac_abs_top_srcdir}" && dnl strip prefixes from find
|
||||
find . dnl
|
||||
-path "./rpmbuild" -prune -o dnl
|
||||
-path "./${PACKAGE}-*" -prune -o dnl dist directories
|
||||
-path '*/build' -prune -o dnl Python builds
|
||||
-path '*/dist' -prune -o dnl Python dists
|
||||
-path './conf*' -prune -o dnl generated by configure
|
||||
-name '*.py' -print -o dnl
|
||||
-name '*.c' -print -o dnl
|
||||
-name '*.h' -print dnl
|
||||
> po/POTFILES.in && dnl
|
||||
cd "${find_start_pwd}"])
|
||||
AC_SUBST(GETTEXT_DOMAIN, [ipa])
|
||||
AM_GNU_GETTEXT_VERSION([0.19.8])
|
||||
AM_GNU_GETTEXT([external])
|
||||
|
||||
Reference in New Issue
Block a user