From 7699b025327be7df025774b52eb5ea3d5a1453cc Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 11 Nov 2019 10:58:45 +0100 Subject: [PATCH] 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. --- cp-po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/,,") -- 2.39.5