aboutsummaryrefslogtreecommitdiffstats
path: root/check_for_translation_work.sh
diff options
context:
space:
mode:
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