Changeset 30613 for other-projects/gti
- Timestamp:
- 2016-07-21T15:57:07+12:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/gti/translation_status.sh
r30605 r30613 34 34 # http://stackoverflow.com/questions/10515964/counter-increment-in-bash-loop-not-working 35 35 for file in ${filelisting[@]}; do 36 status=`svn status $file` 37 # "LINE: $file - status: $status" 38 # if the file's svn status is modified, write the filename out to the report 39 if [[ "$status" == *"M "* ]]; then 40 #echo "$file has been modified: $status" 41 echo $status >> $report #echo $file >> $report 42 ((num_modified++)) 36 if [[ "$file" != *"zz"* && "$file" != *"test"* ]]; then 37 status=`svn status $file` 38 # "LINE: $file - status: $status" 39 # if the file's svn status is modified, write the filename out to the report 40 if [[ "$status" == *"M "* ]]; then 41 #echo "$file has been modified: $status" 42 echo $status >> $report #echo $file >> $report 43 ((num_modified++)) 44 fi 43 45 fi 44 46 done … … 56 58 # repeat, this time looking for any newly added files 57 59 for file in ${filelisting[@]}; do 58 status=`svn status $file` 59 if [[ "$status" == *"? "* ]]; then 60 #echo "$file has been added: $status" 61 echo $status >> $report 62 ((num_added++)) 60 if [[ "$file" != *"zz"* && "$file" != *"test"* ]]; then 61 status=`svn status $file` 62 if [[ "$status" == *"? "* ]]; then 63 #echo "$file has been added: $status" 64 echo $status >> $report 65 ((num_added++)) 66 fi 63 67 fi 64 68 done
Note:
See TracChangeset
for help on using the changeset viewer.