diff --git a/tlibtoml.config b/tlibtoml.config index db0830b..19ea58b 100644 --- a/tlibtoml.config +++ b/tlibtoml.config @@ -5,9 +5,12 @@ DEP_WORKING_DIR="$DEPENDENCIES_DIR/tlibtoml" +user_config_path="project.config.user" +absolute_dep_dir=$(realpath "$DEPENDENCIES_DIR") + function setup_user_config(){ - local user_config_path="project.config.user" - local absolute_dep_dir=$(realpath "$DEPENDENCIES_DIR") + # Set variable `DEPENDENCIES_DIR`` in `tlibtoml/project.config.user` + # to the directory where `tlibc`` is installed file_copy_default_if_not_present "$user_config_path" "$user_config_path.default" replace_var_value_in_script "$user_config_path" "DEPENDENCIES_DIR" "$absolute_dep_dir" }