summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Bouvier <skunnyk@alteroot.org>2020-12-18 11:55:38 +0100
committerRomain Bouvier <skunnyk@alteroot.org>2020-12-18 11:55:38 +0100
commit80b6f7d528c7f15f81b73d4bed627b62c6072b7f (patch)
tree2afa5c6db00eafabcf6d484cad68e76d1017adba
parent076e43d1d4e170fdc32fa7ac96045d8cd0042f67 (diff)
downloadxfce4-dev-tools-80b6f7d528c7f15f81b73d4bed627b62c6072b7f.tar.gz
Do not process @LINGUAS@ at xdt-autogen stage
- We don't need to find all langugaes at this step, because it is done in xdt-i18n.m4 macros since 4.15 when XDT_I18N is called. - And the "-printf" argument is not supported on BSD find
-rw-r--r--scripts/xdt-autogen.in7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/xdt-autogen.in b/scripts/xdt-autogen.in
index e3a3a8a..b0fe7ce 100644
--- a/scripts/xdt-autogen.in
+++ b/scripts/xdt-autogen.in
@@ -190,11 +190,8 @@ for configure_ac_in_file in $CONFIGURE_AC_IN_FILES; do
revision="UNKNOWN"
fi
- # find out what languages we support
- conf_dir=$(dirname "$configure_ac_file")
- linguas=$(find "$conf_dir/po" -type f -name '*.po' -printf "%f " | sed 's/\.po//g')
-
# and do the substitution
+ # We don't need @LINGUAS@ list anymore because it is generated from xdt-i18n.m4
tmp=$(basename "${configure_ac_in_file}")
cat >"$configure_ac_file" <<EOF
dnl
@@ -204,7 +201,7 @@ dnl
EOF
sed -e "s/@REVISION@/${revision}/g" \
- -e "s/@LINGUAS@/${linguas}/g" \
+ -e "s/@LINGUAS@//g" \
"$configure_ac_in_file" >> "$configure_ac_file"
done