eval_gettext replacement uses bashisms
@desrt
Submitted by Allison Karlitskaya Link to original bug (#741517)
Description
if [ $gettext_available -ne 0 ]; then
If gettext is not installed fallback to echo in english
gettext() { echo -n $1; }
$var
eval_gettext substitutes variables of the form:eval_gettext() { escaped_string=${1/'/\'} eval echo -n ${escaped_string/`/\`} } fi
The substitution in "escaped_string=${1/'/\'}" causes dash to say:
./autogen.sh: 182: ./autogen.sh: Bad substitution
and we have #!/bin/sh at the top of the file, so this causes trouble on Debian (which has dash as /bin/sh).
This is only a problem if gettext is not installed (in which case you'll probably not get too far with jhbuild anyway) but a bug is a bug...
The easiest way to fix this bug would be to rip this code out. I don't know why we go out of our way to translate the messages from autogen.sh. I don't know of any other module that tries to do that...