aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2017-03-26 22:02:40 +0200
committerfilip <filip.komar@gmail.com>2017-03-26 22:02:40 +0200
commitc171871aea5e2c6947471f44a3aec73b042038c1 (patch)
tree770cc7a428b165198e93c680559263e7463481c0 /tools
parent91a35fa5a92d1e965ea080b55483ef0368a29646 (diff)
downloadwww-c171871aea5e2c6947471f44a3aec73b042038c1.tar
www-c171871aea5e2c6947471f44a3aec73b042038c1.tar.gz
www-c171871aea5e2c6947471f44a3aec73b042038c1.tar.bz2
www-c171871aea5e2c6947471f44a3aec73b042038c1.tar.xz
www-c171871aea5e2c6947471f44a3aec73b042038c1.zip
deduplicate diff output
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rebuild_gettext_catalogs.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/rebuild_gettext_catalogs.sh b/tools/rebuild_gettext_catalogs.sh
index d3b264ae6..cc2cf77c1 100755
--- a/tools/rebuild_gettext_catalogs.sh
+++ b/tools/rebuild_gettext_catalogs.sh
@@ -1,8 +1,8 @@
#!/bin/bash
-# Filip Komar, 2014
+# Filip Komar, 2014 - 2017
# @license GPL v2
# @author Filip (rebuilding a gettext dictionaries)
-# @copyright 2014/03
+# @copyright 2014 - 2017
# inspired by check_for_translation_work.sh
error=0
@@ -38,7 +38,7 @@ do
errors[$php_source]=$php_error_level
# if there are no real differences restore copy
if [ -f "$path_and_filename.pot" ] && [ -f "$path_and_filename.copy" ]; then
- diff --ignore-matching-lines='^"POT-Creation-Date:' --ignore-matching-lines='^# Copyright (C) 2014 - ' --ignore-matching-lines='^#: "/web/' $path_and_filename.pot $path_and_filename.copy
+ diff --ignore-matching-lines='^"POT-Creation-Date:' --ignore-matching-lines='^# Copyright (C) 2014 - ' --ignore-matching-lines='^#: "/web/' $path_and_filename.pot $path_and_filename.copy > /dev/null
if [ $? -eq 0 ]; then
cp $path_and_filename.copy $path_and_filename.pot
fi