31#ifndef __NET_DEP_HELPER_HPP__
32#define __NET_DEP_HELPER_HPP__
36 void git_fetch(std::string server, std::string repo) {
37 std::string repo_path;
38 while (repo_path.find(
"/") != std::string::npos) {
39 repo_path.replace(repo_path.find(
"/"), std::string(
"/").size(),
"_");
46 void file_fetch(std::string url, std::string file, std::string args =
"") {
46 void file_fetch(std::string url, std::string file, std::string args =
"") {
…}
#define CBUILD_CACHE_DIR
Cache directory of CBuild.
void git_fetch(std::string server, std::string repo)
void file_fetch(std::string url, std::string file, std::string args="")
Some external dependency. Base class.
bool create(std::vector< std::string > paths, CBuild::fs::type what)
Create element.
bool remove(std::string path, bool force=false)
Delete files or directories.
@ DIR
Alias for DIRECTORY.
Filebuffer for CBuild ecosystem.
int system(std::string cmd)
Call stdlib system() and print cmd to shell.
Custom print that support color codes.