# To use the tools for the NetFPGA2 project, you should source this file.
# Add the following to your ~/.bashrc file AFTER you set the NF2_ROOT variable.
#   source ${NF2_ROOT}/bin/nf2_rc

# We really need NF2_ROOT to be set....
if [ "$NF2_ROOT" = "" ] ; then
   echo "ERROR: the variable NF2_ROOT is not set."
   echo "       Please set the variable NF2_ROOT to the root directory of your"
   echo "       NF2 installation and then re-run this script."
   echo "\n       For example: export NF2_ROOT /usr/share/nf2"

   exit 1
fi

# Project scripts, etc.
export PATH="${NF2_ROOT}/bin:${PATH}"


# Many of the NF2 scripts are Perl scripts, and need certain Perl libraries.
# So here we set up the Perl 5 library variable to include our libraries.
export PERL5LIB="${NF2_DESIGN_DIR}/lib/Perl5:${NF2_ROOT}/lib/Perl5:${PERL5LIB}"


