summaryrefslogtreecommitdiffstats
path: root/refresh-translations
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2017-09-06 16:03:24 +0200
committeranonym <anonym@riseup.net>2017-09-13 00:09:06 +0200
commit0f0a980df96e19e31ca37714feb6be7270cfb747 (patch)
tree3eb7c60c7987de1311a6d987fec0965f2ecdbf9b /refresh-translations
parentcbffd8604651b3a1f688418d366049ea17111f7c (diff)
Simplify.
RTFM ♥
Diffstat (limited to 'refresh-translations')
-rwxr-xr-xrefresh-translations4
1 files changed, 2 insertions, 2 deletions
diff --git a/refresh-translations b/refresh-translations
index a19a6b8..bc3af33 100755
--- a/refresh-translations
+++ b/refresh-translations
@@ -62,7 +62,7 @@ refresh_pot () {
xgettext --language="${proglang}" --from-code=UTF-8 \
-o "${pot}" "${progpath}"
normalize_pot "${pot}" "${orig}"
- if diff_pot_only_line_comment_change "${pot}" "${orig}" ; then
+ if diff_without_pot_creation_date_and_comments "${pot}" "${orig}" >/dev/null; then
echo "Only header or comment changes in '${orig}', restoring the old one."
mv "${orig}" "${pot}"
else
@@ -106,7 +106,7 @@ intltool_update_pot () {
intltool-update --pot --gettext-package=tails
normalize_pot tails.pot tails.pot.orig
- if diff_without_pot_creation_date tails.pot.orig tails.pot && diff_pot_only_line_comment_change tails.pot.orig tails.pot ; then
+ if diff_without_pot_creation_date_and_comments tails.pot.orig tails.pot >/dev/null; then
echo "Only header or comment changes in tails.pot, restoring the old one."
mv tails.pot.orig tails.pot
else