I am writing a little shell script to help setup a production/development environment for some of our software and part of it requires subversion.

I need a way to check if subversion is installed on a \*nix(usually mac) machine.

I was thinking of checking if **export SUBVERSION\_HOME=/opt/subversion** exists in .profile since that is what the devs use here, but are there any more concrete ways?