From da58b564b5e81ac73be0cfd18b25ff7669eef59d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 8 Oct 2005 13:33:32 +0000 Subject: [PATCH] Make it actually work. --- cp-po | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cp-po b/cp-po index 621c3ac..cb598e6 100755 --- a/cp-po +++ b/cp-po @@ -32,14 +32,15 @@ for srcfile in $(find "$srcdir" -name '*.po'); do srccat=$(expr $base : '.*/\([^/]*\)\.po$') for y in $nls_mks; do - destcat=$(cat $y | sed -n 's/CATALOG_NAME[\t ]*:*= *\([^ ]*\)$/\1/p') + destcat=$(cat $y | sed -n 's/CATALOG_NAME.*:*= *\([^ ]*\)$/\1/p') if [ -z "$destcat" ]; then echo "$me: could not determine catalog name from $y; skipped" 1>&2 continue fi if [ "$srccat" = "$destcat" ]; then targetdir=$(echo $y | sed 's,nls\.mk$,po,') - echo "cp $srcfile $targetdir/$lang.po" + echo " cp $srcfile $targetdir/$lang.po" + cp $srcfile $targetdir/$lang.po fi done done -- 2.39.5