aboutsummaryrefslogtreecommitdiffstats
path: root/check_for_translation_work.sh
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2013-05-09 19:38:23 +0000
committerFilip Komar <filip@mageia.org>2013-05-09 19:38:23 +0000
commitb07ede5d1dd8304745032e5559c7e50396e53548 (patch)
treeb51e64085a2902766b2d5c42bf6cf400f0b30e5f /check_for_translation_work.sh
parent8d6450f1813e976658f988ac453cb5f0b2855c38 (diff)
downloadtools-b07ede5d1dd8304745032e5559c7e50396e53548.tar
tools-b07ede5d1dd8304745032e5559c7e50396e53548.tar.gz
tools-b07ede5d1dd8304745032e5559c7e50396e53548.tar.bz2
tools-b07ede5d1dd8304745032e5559c7e50396e53548.tar.xz
tools-b07ede5d1dd8304745032e5559c7e50396e53548.zip
added option for red color for differences from last time
Diffstat (limited to 'check_for_translation_work.sh')
-rwxr-xr-xcheck_for_translation_work.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/check_for_translation_work.sh b/check_for_translation_work.sh
index 9728bddb..d944e5c8 100755
--- a/check_for_translation_work.sh
+++ b/check_for_translation_work.sh
@@ -77,6 +77,9 @@ searching_for_new_pot_files_in_svn=0
# whether to look for new versions of the script and project files
check_updates=1
+# red color for differences from last time (green 32, blue 34)
+color_for_differences=31
+
EOF
echo "This script has not been configured yet for you. A template"
echo "configuration file named .mageia-i18n-config has been made in your"
@@ -334,7 +337,9 @@ echo $separator | tee -a "$logfile".log
if [ -f "$logfile"_previous_run.log ]; then
# show only differences and log them
echo "Differences from last run:" | tee -a "$logfile".log
+ echo -e "\E["$color_for_differences"m"
diff "$logfile"_this_run.log "$logfile"_previous_run.log | tee -a "$logfile".log
+ echo -e "\E[m"
fi
# if you use this script by click it in GUI uncomment the next line