mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 09:16:11 +00:00
Merge pull request #71 from pearsonk/IntegrateVersioning
Unify version string
This commit is contained in:
commit
fa7ed57ec1
7
makefile
7
makefile
@ -16,10 +16,11 @@ includedir?=$(prefix)/include
|
|||||||
|
|
||||||
# Program & versioning information
|
# Program & versioning information
|
||||||
PROGN=g810-led
|
PROGN=g810-led
|
||||||
MAJOR="0"
|
MAJOR=0
|
||||||
MINOR="2"
|
MINOR=2
|
||||||
MICRO="0"
|
MICRO=0
|
||||||
|
|
||||||
|
CFLAGS+=-DVERSION=\"$(MAJOR).$(MINOR).$(MICRO)\"
|
||||||
APPSRCS=src/main.cpp src/helpers/*.cpp src/helpers/*.h
|
APPSRCS=src/main.cpp src/helpers/*.cpp src/helpers/*.h
|
||||||
LIBSRCS=src/classes/*.cpp src/classes/*.h
|
LIBSRCS=src/classes/*.cpp src/classes/*.h
|
||||||
|
|
||||||
|
@ -8,13 +8,11 @@ using namespace std;
|
|||||||
|
|
||||||
namespace help {
|
namespace help {
|
||||||
|
|
||||||
string version = "0.2.0";
|
|
||||||
|
|
||||||
void usage(char *arg0) {
|
void usage(char *arg0) {
|
||||||
string cmdName = utils::getCmdName(arg0);
|
string cmdName = utils::getCmdName(arg0);
|
||||||
cout<<cmdName<<endl;
|
cout<<cmdName<<endl;
|
||||||
cout<<"--------"<<endl;
|
cout<<"--------"<<endl;
|
||||||
cout<<"Version : "<<version<<endl;
|
cout<<"Version : "<<VERSION<<endl;
|
||||||
cout<<endl;
|
cout<<endl;
|
||||||
cout<<" -a {color}\t\t\t\tSet all keys color"<<endl;
|
cout<<" -a {color}\t\t\t\tSet all keys color"<<endl;
|
||||||
cout<<" -g {keygroup} {color}\t\t\tSet key group color"<<endl;
|
cout<<" -g {keygroup} {color}\t\t\tSet key group color"<<endl;
|
||||||
|
@ -12,4 +12,8 @@ namespace help {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef VERSION
|
||||||
|
#define VERSION "unspecified"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user