From: Frank Lichtenheld Date: Mon, 16 Jun 2008 18:47:27 +0000 (+0200) Subject: update_po: Do not update .pot files if only line numbers got updated X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=be9da7d2964d2d14ab4ef42a1900617befb06005;p=deb%2Fpackages.git 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. --- 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