Stephan Herrmann | bedf170 | 2011-06-03 10:35:30 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | map=${HOME}/shared/map/otdt.map |
| 4 | |
| 5 | echo "Checking diffs between trunk and versions specifed in ${map}" |
| 6 | |
| 7 | for l in `cat $map` |
| 8 | do |
| 9 | tag=`echo $l | sed -e "s/^.*,tag=\(tags\/[^\r]*\)[\r]*$/\1/"` |
| 10 | if [ $tag != $l ] |
| 11 | then |
| 12 | path=`echo $l | sed -e "s/^.*,path=\(.*\),tag.*$/\1/"` |
| 13 | # echo "${path} at ${tag}" |
| 14 | url=`echo $l | sed -e "s/^.*,url=\(.*\),path.*$/\1/"` |
| 15 | outfile=`echo ${path} | sed -e "s/plugins\/\(.*\)/\1/"`.diff |
| 16 | svn diff ${url}/trunk/${path} ${url}/${tag}/${path} > $outfile 2> /dev/null |
| 17 | if [ -s $outfile ] |
| 18 | then |
| 19 | echo $outfile |
| 20 | else |
| 21 | /bin/rm $outfile |
| 22 | fi |
| 23 | fi |
| 24 | done |
| 25 | |
| 26 | echo "Done." |
| 27 | |