update header files; version 0.5 (chronos virtual server)

master
Dominic Reich 3 years ago
parent ff8ab2539f
commit fd236813fa

@ -36,7 +36,7 @@
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include <unistd.h> // get the current user-id #include <unistd.h> // get the current user-id
#include <boost/system/error_code.hpp> // ip-address check //#include <boost/system/error_code.hpp> // ip-address check
#include <boost/asio/ip/address.hpp> // ip-address check #include <boost/asio/ip/address.hpp> // ip-address check
#include <vector> #include <vector>
//#include <algorithm> // sorting the vector //#include <algorithm> // sorting the vector
@ -269,9 +269,9 @@ inline bool fileExists(const string &name) {
*/ */
void printHelp(bool printAll) void printHelp(bool printAll)
{ {
cout << "blacklist " << AutoVersion::FULLVERSION_STRING << ", "; cout << "blacklist " << Version::VERSION_STRING << ", ";
cout << AutoVersion::STATUS << endl; cout << Version::STATUS << endl;
cout << "Copyright (c) 2015-2019 by Dominic Reich\n" << endl; cout << Version::COPYRIGHT << endl;
cout << "Usage: blacklist [options] <ip-address>" << endl; cout << "Usage: blacklist [options] <ip-address>" << endl;
if(printAll == true) if(printAll == true)
{ {

@ -1,32 +1,16 @@
#ifndef VERSION_H #ifndef VERSION_H
#define VERSION_H #define VERSION_H
namespace AutoVersion{ namespace Version{
//Date Version Types
static const char DATE[] = "03";
static const char MONTH[] = "11";
static const char YEAR[] = "2019";
static const char UBUNTU_VERSION_STYLE[] = "19.11";
//Software Status //Software Status
static const char STATUS[] = "Release Candidate [vserver]"; static const char STATUS[] = "Release Candidate [chronos-vs]";
static const char STATUS_SHORT[] = "rc";
//Standard Version Type
static const long MAJOR = 0;
static const long MINOR = 4;
static const long BUILD = 66;
static const long REVISION = 276;
//Miscellaneous Version Types //Miscellaneous Version Types
static const long BUILDS_COUNT = 66; static const char VERSION_STRING [] = "0.5";
#define RC_FILEVERSION 0,4,66,276
#define RC_FILEVERSION_STRING "0, 4, 66, 276\0"
static const char FULLVERSION_STRING [] = "0.4.66.276";
//These values are to keep track of your versioning state, don't modify them. //Copyright line usable in the program
static const long BUILD_HISTORY = 66; static const char COPYRIGHT [] = "Copyright ©2015-2022 Dominic Reich\n";
} }
#endif //VERSION_H #endif //VERSION_H

Loading…
Cancel
Save