#! /bin/csh

#-----------------------------------------
# Create links to the tools include files.
#-----------------------------------------

# Specify the root path to the include directories.

set dest_root="`pwd`/.."

# Include files.

if (!(-d ${dest_root}/include)) then
  mkdir ${dest_root}/include
endif

foreach file (*.f)
  /bin/rm -f ${dest_root}/include/"$file"
  ln -s `pwd`/"$file" ${dest_root}/include/"$file"
end

pushd parse > /dev/null
foreach file (*_modules.f)
  /bin/rm -f ${dest_root}/include/"$file"
  ln -s `pwd`/"$file" ${dest_root}/include/"$file"
end
popd > /dev/null

pushd sds > /dev/null
foreach file (*_modules.f)
  /bin/rm -f ${dest_root}/include/"$file"
  ln -s `pwd`/"$file" ${dest_root}/include/"$file"
end
popd > /dev/null
