Changeset 31961
- Timestamp:
- 2017-09-11T17:24:43+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/gti/translation_status.sh
r31715 r31961 31 31 num_modified=0 32 32 num_added=0 33 num_conflict=0 33 34 34 35 # in the lines returned from the diff, test for archives or newline … … 80 81 echo "---------------------------------------------" >> $report 81 82 83 84 # repeat again, this time looking for any files in conflict 85 for file in ${filelisting[@]}; do 86 status=`svn status $file` 87 if [[ "$status" == *"C "* ]]; then 88 #echo "$file is in conflict: $status" 89 echo $status >> $report 90 ((num_conflict++)) 91 fi 92 done 93 94 if [[ $num_conflict == 0 ]]; then 95 echo "No files in conflict" >> $report 96 echo "---------------------------------------------" >> $report 97 else 98 echo "" >> $report 99 echo "The above $num_conflict files were IN CONFLICT." >> $report 100 echo "---------------------------------------------" >> $report 101 fi 102 103 104 105 82 106 # restore IFS 83 107 IFS=$IFS_BAK … … 89 113 if [[ $num_modified != 0 || $num_added != 0 ]]; then 90 114 # echo "Files were modified or added. Sending email..." 91 cat $report | mail -s 'GTI: '$num_modified/$num_added' language file(s) on gti (nzdl) have been updated/added' $GREENSTONE_EMAIL 115 cat $report | mail -s 'GTI: '$num_modified/$num_added/$num_conflict' language file(s) on gti (nzdl) have been updated/added or conflict' $GREENSTONE_EMAIL 116 echo "Sent mail of report: $report" 117 elif [[ $num_conflict != 0 ]]; then 118 # echo "Files were modified or added. Sending email..." 119 cat $report | mail -s 'GTI: '$num_conflict' language file(s) on gti (nzdl) are IN CONFLICT' $GREENSTONE_EMAIL 92 120 echo "Sent mail of report: $report" 93 121 else
Note:
See TracChangeset
for help on using the changeset viewer.