#!/bin/sh # see notes in compare-wordpress-structure #hardcode this to the version of wordpress you want to compare WP='/Users/john/ibiblio/lyceum/wordpress/tags' TAG='2.0.11' left=$WP/$TAG/$2 right=`pwd`/$2 if [ '-opendiff' = $1 ]; then opendiff $left $right elif [ '-kdiff3' = $1 ]; then /Applications/kdiff3.app/Contents/MacOS/kdiff3 $left $right else echo '.svn' > /tmp/diffexcludes diff -C0 -r --exclude-from=/tmp/diffexcludes --minimal $WP/$TAG/$1 `pwd`/$1 fi