#!/bin/bash # see: http://www.defraine.net/~brunod/fmdiff/ # which helps wrap Apple Developer FileMerge (visual diff tool) # for use with svn diff # Run diff on all checked out files. changedFiles=`svni $1 $2` function EE { echo "(*)" `date +%Y.%m.%d.%H:%M:%S` --- $1 $2 $3 $4 $5 $6 $7 $8 $9 } for file in $changedFiles do contents=`cat $file` fileSize=${#contents} echo "$file filesize is $fileSize" # dont do visual diff for huge files ok. if [ "1000000" -ge $fileSize ] then cmd="svn diff $1 $2 --diff-cmd fmdiff $file" EE "running $cmd" $cmd fi done