#! /bin/sh if [ ! -d .svn ] then echo "no .svn directory found" exit 1 fi revision=`echo $1 | sed -e 's/^/fli4l-/;s/\./_/g'` shift eval "`grep url .svn/entries`" tag=`echo $url | sed -e "s,^\(.*\)\(trunk\|branches\|tags\).*,\1tags,"` if [ "$revision" = fli4l- ] then echo "usage: $0 tag [ file | dir ]" echo "available tags are:" svn ls $tag exit 1 fi tag=`echo $url | sed -e "s,^\(.*\)\(trunk\|branches\|tags\).*,\1tags/$revision,"` if [ "$1" ] then while [ "$1" ] do svn diff --diff-cmd /home/fli4l/bin/diff-wrapper $tag/$1 $url/$1 shift done else svn diff --diff-cmd /home/fli4l/bin/diff-wrapper $tag $url fi