mirror of
https://gitea.home.endeavr.de/Marcel/Tarstats-pp.git
synced 2025-12-10 00:39:01 +01:00
this cleaned up some stuff and added version information.
This commit is contained in:
@@ -6,9 +6,9 @@ set(CMAKE_CXX_STANDARD 20)
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -std=c++20")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -std=c++20")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
add_executable(tarstats_pp main.cpp tarconst.h tarfunc.cpp tarfunc.h)
|
add_executable(tarstats_pp main.cpp tarconst.h tarfunc.cpp tarfunc.h)
|
||||||
target_link_libraries(tarstats_pp -lz)
|
target_link_libraries(tarstats_pp -lz)
|
||||||
|
|
||||||
install(TARGETS tarstats_pp)
|
install(TARGETS tarstats_pp)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,9 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
namespace tarconstant {
|
namespace tarconstant {
|
||||||
|
//global version
|
||||||
|
inline std::string const version = "v0.9-beta.2";
|
||||||
|
|
||||||
// global itemtype definition
|
// global itemtype definition
|
||||||
inline std::string const typeFile = "FILES";
|
inline std::string const typeFile = "FILES";
|
||||||
inline std::string const typeDir = "DIRECTORIES";
|
inline std::string const typeDir = "DIRECTORIES";
|
||||||
@@ -35,10 +38,11 @@ namespace tarconstant {
|
|||||||
"optional arguments\n"
|
"optional arguments\n"
|
||||||
"-h this helptext\n"
|
"-h this helptext\n"
|
||||||
"-j stats in JSON format printed to stdout\n"
|
"-j stats in JSON format printed to stdout\n"
|
||||||
"-f print stats to file <tarfilename>.txt or .json if -j invoked\n\n"
|
"-f print stats to file <tarfilename>.txt or .json + global.json if -j invoked\n\n"
|
||||||
"Find more information as well as full source at github.com/blindi0815/Tarstats-pp."
|
"Find more information as well as full source at github.com/blindi0815/Tarstats-pp."
|
||||||
"This software is as is under a GPL 3.0 license.\n\n"
|
"This software is as is under a GPL 3.0 license.\n\n"
|
||||||
"Written by Marcel Nowicki - github.com/blindi0815"};
|
"Written by Marcel Nowicki - github.com/blindi0815/Tarstats_pp\n\n"
|
||||||
|
"Version information: " + tarconstant::version + "\n"};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //TARSTATS___TARCONST_H
|
#endif //TARSTATS___TARCONST_H
|
||||||
|
|||||||
Reference in New Issue
Block a user