dehydrate release v10

This commit is contained in:
Your Name 2025-05-21 21:37:42 +12:00
parent fba807a958
commit d9a082bc3f
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
static const char *VERSION = "9";
static const char *VERSION = "10";

View File

@ -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 cppname = "_" + src.stem().string() + ".cpp";
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);
std::ifstream in(source, std::ios::binary);
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 cppname = "_" + src.stem().string() + ".cpp";
std::string hppname = "_" + src.stem().string() + ".hpp";
std::string bothname = "_" + src.stem().string() + ".{cpp,hpp}";
fs::create_directories(dest);
// Collect all files
std::vector<fs::path> files;
@ -366,6 +367,6 @@ bool recreate_tree(std::string destination_folder) {
cpp << "}\n";
if (!silent) {
std::cout << "[dehydrate] Generated: " << (dest / cppname) << ", " << (dest / hppname) << std::endl;
std::cout << "[dehydrate] Generated: " << (dest / bothname) << std::endl;
}
}