From: Peter Eisentraut Date: Sun, 11 Feb 2024 08:57:18 +0000 (+0100) Subject: cp-po: Fix up one more place for po/LINGUAS files X-Git-Url: http://git.postgresql.org/gitweb/static/js/pgconfig.js?a=commitdiff_plain;h=e3abe57ef4ae0711ba1a667f78ebbe5bddf28c60;p=pgtranslation%2Fadmin.git cp-po: Fix up one more place for po/LINGUAS files --- diff --git a/cp-po b/cp-po index 4e6d55b..2f8deac 100755 --- a/cp-po +++ b/cp-po @@ -159,7 +159,12 @@ for srcfile in $(find -H "$srcdir" -name '*.po'); do targetfile=$targetdir/$lang.po if [ ! -e $targetfile ]; then if ! $update_target_tree; then - echo "NEW: $targetfile --- file will be copied, but do \"git add\" and fix $y by hand" 1>&2 + if [ -e "$targetdir/LINGUAS" ]; then + y2="$targetdir/LINGUAS" + else + y2=$y + fi + echo "NEW: $targetfile --- file will be copied, but do \"git add\" and fix $y2 by hand" 1>&2 fi fi if [ ! -e $targetfile ] \