#!/bin/csh

if ($#argv < 1) then
        printf "Please provide source file.\n\n"
        exit
endif

set plotFiles = ("/_SrcRto.tr.xgraph")
while ($#plotFiles > 0)
    set cmdarg = "xgraph "
    foreach arg ($argv)
        set cmdarg = ($cmdarg" "$arg$plotFiles[1]" "$arg"/_SrcSrtt.tr.xgraph"" "$arg"/_SrcRttVar.tr.xgrap")
    end
    shift plotFiles
#    echo $cmdarg
    eval $cmdarg" &"
end
