Skip to content
Snippets Groups Projects
Commit 80b6f7d5 authored by Romain Bouvier's avatar Romain Bouvier
Browse files

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
parent 076e43d1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment