From: Peter Eisentraut Date: Mon, 11 Nov 2019 09:58:45 +0000 (+0100) Subject: cp-po: Tweak whitespace handling X-Git-Url: http://git.postgresql.org/gitweb/delmail?a=commitdiff_plain;h=7699b025327be7df025774b52eb5ea3d5a1453cc;p=pgtranslation%2Fadmin.git cp-po: Tweak whitespace handling 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. --- diff --git a/cp-po b/cp-po index ac54b34..d4ae928 100755 --- a/cp-po +++ b/cp-po @@ -213,7 +213,7 @@ if $update_target_tree; then 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/,,")