mirror of
https://github.com/MatMoul/g810-led.git
synced 2025-11-21 02:52:06 +00:00
Unify version string
Specified version string in makefile will now propogate to VERSION as a macro appended to CFLAGS. Cleaned up version string, quotes not necessary when specifying major/minor/micro, though this is purely cosmetic. Signed-off-by: Kevin Pearson <pearosn.kevin.m@gmail.com>
This commit is contained in:
@@ -8,13 +8,11 @@ using namespace std;
|
||||
|
||||
namespace help {
|
||||
|
||||
string version = "0.2.0";
|
||||
|
||||
void usage(char *arg0) {
|
||||
string cmdName = utils::getCmdName(arg0);
|
||||
cout<<cmdName<<endl;
|
||||
cout<<"--------"<<endl;
|
||||
cout<<"Version : "<<version<<endl;
|
||||
cout<<"Version : "<<VERSION<<endl;
|
||||
cout<<endl;
|
||||
cout<<" -a {color}\t\t\t\tSet all keys 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
|
||||
|
||||
Reference in New Issue
Block a user