From be9da7d2964d2d14ab4ef42a1900617befb06005 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 16 Jun 2008 20:47:27 +0200 Subject: [PATCH] update_po: Do not update .pot files if only line numbers got updated In my experience this causes a lot of noise for little gain. --- cron.d/500update_po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.d/500update_po b/cron.d/500update_po index 754951d..9950b8a 100755 --- a/cron.d/500update_po +++ b/cron.d/500update_po @@ -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 -- 2.39.2