From e3abe57ef4ae0711ba1a667f78ebbe5bddf28c60 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 11 Feb 2024 09:57:18 +0100 Subject: [PATCH] cp-po: Fix up one more place for po/LINGUAS files --- cp-po | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ] \ -- 2.39.5