diff --git a/.gitignore b/.gitignore index 3ac3b64..2dd9d45 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Build directories /build/ +/build*/ # Output binaries and folders /output/ diff --git a/include/version.hpp b/include/version.hpp index 4ea83f5..6aacc2c 100644 --- a/include/version.hpp +++ b/include/version.hpp @@ -1 +1 @@ -static const char *VERSION = "1"; +static const char *VERSION = "2"; diff --git a/src/argparse.cpp b/src/argparse.cpp index 34372ef..7a166c6 100644 --- a/src/argparse.cpp +++ b/src/argparse.cpp @@ -1,4 +1,5 @@ #include "argparse.hpp" +#include "version.hpp" #include static const std::string HELP_TEXT = R"( diff --git a/src/main.cpp b/src/main.cpp index 588138b..3cc56cc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,9 +2,9 @@ #include #include -#include "../include/argparse.hpp" -#include "../include/generator.hpp" - +#include "argparse.hpp" +#include "generator.hpp" +#include "version.hpp" std::string get_arch() @@ -57,6 +57,7 @@ int update() int main(int argc, char* argv[]) { try { + std::cout << "Dehydrate version " << VERSION << std::endl; Args args = parse_args(argc, argv); // Handle update request diff --git a/test.sh b/test.sh index 6e92f0e..2be30a0 100755 --- a/test.sh +++ b/test.sh @@ -7,8 +7,6 @@ TEST_DIR="$SCRIPT_DIR/test" rm -rf $TEST_DIR mkdir $TEST_DIR - -#"$SCRIPT_DIR/build.sh" "$SCRIPT_DIR/output/dehydrate.amd64" src $TEST_DIR