r175: start versioning

This commit is contained in:
Heng Li
2020-03-28 11:52:14 -04:00
parent 1d4f34a36c
commit e75b93ae12
3 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -5,7 +5,6 @@
#include "ketopt.h"
#include <sys/time.h>
#define VERSION "0.3.0"
#define DEFAULT_OUTPUT "hifiasm.asm"
hifiasm_opt_t asm_opt;
@@ -309,7 +308,7 @@ int CommandLine_process(int argc, char *argv[], hifiasm_opt_t* asm_opt)
}
else if (c == 'v')
{
fprintf(stderr, "[Version] %s\n", VERSION);
puts(HA_VERSION);
return 0;
}
else if (c == 'f') asm_opt->bf_shift = atoi(opt.arg);
+2
View File
@@ -3,6 +3,8 @@
#include <pthread.h>
#define HA_VERSION "0.3.0-dirty-r175"
#define VERBOSE 0
#define VERBOSE_GFA 0
+1 -1
View File
@@ -18,7 +18,7 @@ int main(int argc, char *argv[])
ha_ft_destroy(ha_flt_tab);
destory_All_reads(&R_INF);
destory_opt(&asm_opt);
fprintf(stderr, "[M::%s] Version: %s\n", __func__, "dummy");
fprintf(stderr, "[M::%s] Version: %s\n", __func__, HA_VERSION);
fprintf(stderr, "[M::%s] CMD:", __func__);
for (i = 0; i < argc; ++i)
fprintf(stderr, " %s", argv[i]);