dehydrate release v10
This commit is contained in:
parent
fba807a958
commit
d9a082bc3f
@ -1 +1 @@
|
|||||||
static const char *VERSION = "9";
|
static const char *VERSION = "10";
|
||||||
|
@ -145,7 +145,7 @@ void generate_file_code(const std::string& source, const std::string& destfolder
|
|||||||
std::string ns = "recreate_" + sanitize(src.stem().string());
|
std::string ns = "recreate_" + sanitize(src.stem().string());
|
||||||
std::string cppname = "_" + src.stem().string() + ".cpp";
|
std::string cppname = "_" + src.stem().string() + ".cpp";
|
||||||
std::string hppname = "_" + src.stem().string() + ".hpp";
|
std::string hppname = "_" + src.stem().string() + ".hpp";
|
||||||
std::string bothname = "_" + src.stem().string() + "{.cpp,hpp}";
|
std::string bothname = "_" + src.stem().string() + ".{cpp,hpp}";
|
||||||
fs::create_directories(dest);
|
fs::create_directories(dest);
|
||||||
std::ifstream in(source, std::ios::binary);
|
std::ifstream in(source, std::ios::binary);
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
@ -241,6 +241,7 @@ void generate_folder_code(const std::string& source, const std::string& destfold
|
|||||||
std::string ns = "recreate_" + sanitize(src.stem().string());
|
std::string ns = "recreate_" + sanitize(src.stem().string());
|
||||||
std::string cppname = "_" + src.stem().string() + ".cpp";
|
std::string cppname = "_" + src.stem().string() + ".cpp";
|
||||||
std::string hppname = "_" + src.stem().string() + ".hpp";
|
std::string hppname = "_" + src.stem().string() + ".hpp";
|
||||||
|
std::string bothname = "_" + src.stem().string() + ".{cpp,hpp}";
|
||||||
fs::create_directories(dest);
|
fs::create_directories(dest);
|
||||||
// Collect all files
|
// Collect all files
|
||||||
std::vector<fs::path> files;
|
std::vector<fs::path> files;
|
||||||
@ -366,6 +367,6 @@ bool recreate_tree(std::string destination_folder) {
|
|||||||
cpp << "}\n";
|
cpp << "}\n";
|
||||||
|
|
||||||
if (!silent) {
|
if (!silent) {
|
||||||
std::cout << "[dehydrate] Generated: " << (dest / cppname) << ", " << (dest / hppname) << std::endl;
|
std::cout << "[dehydrate] Generated: " << (dest / bothname) << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user