Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xorp: rtrmgr: util.cc: Changed s_cfg_root and s_config_root and intro…
…duced s_template_dir and s_target_dir When current_root == build_root, changed s_cfg_root to be equal build_root, so the xorpsh and xorp_rtrmgr would expect command and module bins in $BUILDDIR/lib/xorp/{bin, sbin} by default. Changed s_config_file to be equal xorp_real_path(XORP_SRC_ROOT) + "/rtrmgr/config/xorp.conf", so the xorpsh and xorp_rtrmgr would expect xorp.conf in subdir, where all example .conf files are, by default. Introduced s_template_dir and s_target_dir, so when xorpsh and xorp_rtrmgr are run from $BUILDDIR, they would look for template files in $BUILDDIR/etc/templates and target files in $BUILDDIR/xrl/targets. In other cases, they look for template files in s_cfg_root+"/share/xorp/templates" and for target files in s_cfg_root+"/share/xorp/xrl/targets", like they used to do. Signed-off-by: Igor Maravic <igorm@etf.rs>
- Loading branch information