]> git.deb.at Git - deb/packages.git/commitdiff
update_po: Do not update .pot files if only line numbers got updated
authorFrank Lichtenheld <frank@lichtenheld.de>
Mon, 16 Jun 2008 18:47:27 +0000 (20:47 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Mon, 16 Jun 2008 18:47:27 +0000 (20:47 +0200)
In my experience this causes a lot of noise for little gain.

cron.d/500update_po

index 754951d11589c53264ab063d123a5e81ae97bd0f..9950b8a6dd7a692946bf93a1319b10d86dbeb003 100755 (executable)
@@ -79,7 +79,7 @@ done
 for domain in ${podomains}
 do
   perl -p -i -e "s,^#:\s*\Q${topdir}\E,#: .,go" ${domain}.pot.new
-  if [ ! -f ${domain}.pot.new ] || diff -I"POT-Creation-Date" -q ${domain}.pot.new ${domain}.pot >/dev/null 2>&1
+  if [ ! -f ${domain}.pot.new ] || diff -I"POT-Creation-Date" -I"^#: " -q ${domain}.pot.new ${domain}.pot >/dev/null 2>&1
   then
       echo "${domain}.pot unchanged"
       rm ${domain}.pot.new