Hi @spoorcc thanks a lot for the tool, it's very useful.
I used to have a lot of third‑party dependencies and vendored projects hosted alongside the main projects. When these projects delivered a new release or tag, I wrote some shell and batch scripts:
The common script loops over subdirectories and runs the local update script, which uses Git or other services to integrate the changes into the main repository tree.
My problem
When I want to fetch a dependency, I want to control what files go where in the main tree.
So I specify the subtree folder path with dynamic variables (to exclude documentation or other unnecessary stuff).
I was thinking about dftech:
- Does it support excluding or including files from the dependency?
- For the destination folder path, does it support dynamic variable resolution?
(For example, I want to parameterize the destination folder of all vendored projects with a global variable or parameter fed from CMake or external sources.)
#!/bin/bash
set -e
name="doctest"
repository="https://github.com/doctest/doctest"
subtree="$name/src"
version="2.5.2"
tag=""
files=(
"doctest/doctest.h"
"doctest/extensions/doctest_mpi.h"
"doctest/extensions/doctest_util.h"
"doctest/extensions/mpi_reporter.h"
"doctest/extensions/mpi_sub_comm.h"
"doctest/doctest.cpp"
"doctest/parts/doctest_fwd.h"
"LICENSE.txt"
"README.md"
)
Hi @spoorcc thanks a lot for the tool, it's very useful.
I used to have a lot of third‑party dependencies and vendored projects hosted alongside the main projects. When these projects delivered a new release or tag, I wrote some shell and batch scripts:
along with a shell script in each dependency project:
The common script loops over subdirectories and runs the local update script, which uses Git or other services to integrate the changes into the main repository tree.
My problem
When I want to fetch a dependency, I want to control what files go where in the main tree.
So I specify the subtree folder path with dynamic variables (to exclude documentation or other unnecessary stuff).
I was thinking about dftech:
(For example, I want to parameterize the destination folder of all vendored projects with a global variable or parameter fed from CMake or external sources.)