#!/bin/bash export SCRIPT=$(basename $0) usage() { echo "Usage: $SCRIPT [-q]" exit 1 } export -f usage version=$(LC_ALL=C svn info $(dirname $(readlink -f $0))/../.. | sed -n 's/^URL: .*\/\([^/]\+\)\/[^ ]\+\/src$/\1/p' 2>/dev/null) if [ -z "$version" ] then echo "Error: Could not determine branch version -- do you call this script from a SVN repository checkout?" >&2 exit 2 fi opt= while true do case $1 in -*) opt+=" $1";; *) break;; esac shift done ${0%/*}/missing-changesets $opt branches/$version/trunk/src branches/$version/testing/src FFL