When editing AVAIL_LANGUAGES, put exactly one space after the =
instead of leaving what spaces were there before, which would result
in no whitespace when adding the first language.
for y in $nls_mks; do
targetdir=$(echo $y | sed 's,nls\.mk$,po,')
langs=$(echo $(cd $targetdir && ls *.po | sed 's/\.po$//'))
- sed -e 's/\(AVAIL_LANGUAGES.*:*= *\).*$/\1'"$langs/" $y >$y.new
+ sed -e 's/\(AVAIL_LANGUAGES.*:*=\).*$/\1 '"$langs/" $y >$y.new
mv $y.new $y
if $git_mode; then
git add $(echo "$y" | sed "s,^$destdir/,,")