dehydrate release v2
This commit is contained in:
parent
6377adeed4
commit
a64a7b348d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
# Build directories
|
# Build directories
|
||||||
/build/
|
/build/
|
||||||
|
/build*/
|
||||||
|
|
||||||
# Output binaries and folders
|
# Output binaries and folders
|
||||||
/output/
|
/output/
|
||||||
|
@ -1 +1 @@
|
|||||||
static const char *VERSION = "1";
|
static const char *VERSION = "2";
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "argparse.hpp"
|
#include "argparse.hpp"
|
||||||
|
#include "version.hpp"
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
static const std::string HELP_TEXT = R"(
|
static const std::string HELP_TEXT = R"(
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "../include/argparse.hpp"
|
#include "argparse.hpp"
|
||||||
#include "../include/generator.hpp"
|
#include "generator.hpp"
|
||||||
|
#include "version.hpp"
|
||||||
|
|
||||||
|
|
||||||
std::string get_arch()
|
std::string get_arch()
|
||||||
@ -57,6 +57,7 @@ int update()
|
|||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
try {
|
try {
|
||||||
|
std::cout << "Dehydrate version " << VERSION << std::endl;
|
||||||
Args args = parse_args(argc, argv);
|
Args args = parse_args(argc, argv);
|
||||||
|
|
||||||
// Handle update request
|
// Handle update request
|
||||||
|
2
test.sh
2
test.sh
@ -8,8 +8,6 @@ TEST_DIR="$SCRIPT_DIR/test"
|
|||||||
rm -rf $TEST_DIR
|
rm -rf $TEST_DIR
|
||||||
mkdir $TEST_DIR
|
mkdir $TEST_DIR
|
||||||
|
|
||||||
#"$SCRIPT_DIR/build.sh"
|
|
||||||
|
|
||||||
"$SCRIPT_DIR/output/dehydrate.amd64" src $TEST_DIR
|
"$SCRIPT_DIR/output/dehydrate.amd64" src $TEST_DIR
|
||||||
|
|
||||||
cat <<EOF > test/main.cpp
|
cat <<EOF > test/main.cpp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user