#!/bin/tcsh
# create the version specific object tree
#
# M.Zolliker 08.2003
#
if ("$2" == "") then

  echo missing arg 2 (fit version)

else

  set FIT_ROOT=$PWD

# determine object directory
  set o="$FIT_ROOT/$2/$1"

# determine makefile
  set m="$FIT_ROOT/$1/makefile_$2"

  if (-e $m) then
    if (! -e $o) then
      echo create directory $o
      mkdir -p $o
    else
      echo $o exists
    endif
    rm -f $o/src
    echo ln -s $FIT_ROOT/$1 $o/src
    ln -s $FIT_ROOT/$1 $o/src
  endif
endif

