From 656f1b9158ba620afd4130da79577eb79b44698c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 31 Jan 2008 17:58:05 +0000 Subject: [PATCH] Ignore altered "pgtranslation Id" lines as well when diffing. --- cp-po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cp-po b/cp-po index 92e9afe..a962006 100755 --- a/cp-po +++ b/cp-po @@ -61,7 +61,7 @@ for srcfile in $(find "$srcdir" -name '*.po'); do if [ ! -e $targetfile ]; then echo "NEW: $targetfile --- file will be copied, but do \"cvs add\" and fix $y by hand" 1>&2 fi - if [ ! -e $targetfile ] || ! diff -I '\$\(Header\|Id\|PostgreSQL\):.*\$' $srcfile $targetfile >/dev/null; then + if [ ! -e $targetfile ] || ! diff -I '\(\$Header\|pgtranslation Id\|\$Id\|\$PostgreSQL\):.*\$' $srcfile $targetfile >/dev/null; then echo " $srcfile --> $targetfile" $run && { cat $srcfile | sed 's/^\(# *\)$Id/\1pgtranslation Id/' >$targetfile; chmod 644 $targetfile; } fi -- 2.39.5