blob: 3f79405f58e9642d0b2672aeb408312fc896b6fa [file] [log] [blame]
Stephan Herrmannbedf1702011-06-03 10:35:30 +00001#!/bin/sh
2
3map=${HOME}/shared/map/otdt.map
4
5echo "Checking diffs between trunk and versions specifed in ${map}"
6
7for l in `cat $map`
8do
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
24done
25
26echo "Done."
27