From: Alvaro Herrera Date: Fri, 6 Jun 2008 22:47:08 +0000 (+0000) Subject: Ignore $Foo$ keywords even if they haven't ever been expanded. X-Git-Url: http://git.postgresql.org/gitweb/static/connections.php?a=commitdiff_plain;h=d1119bf00a37a7073cebc88c548fd26f306420e6;p=pgtranslation%2Fadmin.git Ignore $Foo$ keywords even if they haven't ever been expanded. --- diff --git a/cp-po b/cp-po index a962006..37d3f35 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\|pgtranslation Id\|\$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