#!/bin/sh # if you are not running this on a unix-like system (one that supports # symlinks) you cannot use this script directly. The dirname+readlink # below allows the program to find the checked-out directory and call a # program which lives next to this one there. REPOS="$1" REV="$2" # complain if no link... if [ -L $0 ]; then $(dirname $(readlink $0))/scheduler $REPOS $REV else echo $0 is not a link >&2 exit 1 fi