Ignore $Foo$ keywords even if they haven't ever been expanded.
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 6 Jun 2008 22:47:08 +0000 (22:47 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 6 Jun 2008 22:47:08 +0000 (22:47 +0000)
cp-po

diff --git a/cp-po b/cp-po
index a9620061d442e8dd361fb1822141ff807442506b..37d3f35c49696c64d62825c98f2c0ec07943e8fd 100755 (executable)
--- 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