mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 18:55:29 +00:00
Program version is now determined from makefile.
This commit is contained in:
parent
50d891cd24
commit
54cf4c5ef2
|
@ -45,7 +45,7 @@ void UserSettings::parseCmdArgs(const std::vector<std::string>& arg_list)
|
|||
|
||||
void UserSettings::showHelp()
|
||||
{
|
||||
printf("%s v%d.%d.%d (C) %s\n", APP_NAME, VER_MAJOR, VER_MINOR, VER_PATCH, AUTHORS);
|
||||
printf("%s v%d.%d.%d (C) %s\n", APP_NAME, PROJECT_VER_MAJOR, PROJECT_VER_MINOR, PROJECT_VER_PATCH, PROJECT_AUTHORS);
|
||||
printf("Built: %s %s\n\n", __TIME__, __DATE__);
|
||||
|
||||
printf("Usage: %s [options... ] <file>\n", BIN_NAME);
|
||||
|
|
|
@ -1,7 +1,15 @@
|
|||
#pragma once
|
||||
#define APP_NAME "NSTool"
|
||||
#define BIN_NAME "nstool"
|
||||
#define VER_MAJOR 1
|
||||
#define VER_MINOR 0
|
||||
#define VER_PATCH 5
|
||||
#define AUTHORS "jakcron"
|
||||
|
||||
#ifndef PROJECT_VER_MAJOR
|
||||
#define PROJECT_VER_MAJOR 0
|
||||
#endif
|
||||
#ifndef PROJECT_VER_MINOR
|
||||
#define PROJECT_VER_MINOR 0
|
||||
#endif
|
||||
#ifndef PROJECT_VER_PATCH
|
||||
#define PROJECT_VER_PATCH 0
|
||||
#endif
|
||||
|
||||
#define PROJECT_AUTHORS "jakcron"
|
Loading…
Reference in a new issue