mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-11-25 00:53:43 +00:00
Update copyright year in -h message
Also make it nicer/easier (hopefully) to remember and to update it next time.
This commit is contained in:
parent
9ae2474f58
commit
da222940ca
3 changed files with 10 additions and 1 deletions
|
@ -33,6 +33,7 @@ if(DINDEXER_NATIVE_RELEASE)
|
|||
else()
|
||||
set(march_flag "")
|
||||
endif()
|
||||
set(DINDEXER_COPYRIGHT_YEARS "2015,2016")
|
||||
set(DINDEXER_ACTIONS_PATH "${CMAKE_CURRENT_BINARY_DIR}/src" CACHE STRING "Actions search path")
|
||||
string(REGEX MATCH "[^/].*" ACTIONS_PATH_INSTALL "${DINDEXER_ACTIONS_PATH}")
|
||||
set(DB_OWNER_NAME "$ENV{USER}" CACHE STRING "Name that will be used as the DB owner name")
|
||||
|
|
|
@ -19,9 +19,12 @@
|
|||
#include "dindexerConfig.h"
|
||||
#include "helpers/lengthof.h"
|
||||
#include "helpers/stringize.h"
|
||||
#include "helpers/infix_iterator.hpp"
|
||||
#include <boost/program_options.hpp>
|
||||
#include <ostream>
|
||||
#include <utility>
|
||||
#include <cstdint>
|
||||
#include <algorithm>
|
||||
|
||||
namespace po = boost::program_options;
|
||||
|
||||
|
@ -55,7 +58,10 @@ namespace dinlib {
|
|||
parStream << "*******************\n";
|
||||
parStream << '\n';
|
||||
#endif
|
||||
parStream << PROGRAM_NAME << " Copyright (C) 2015 Michele Santullo\n";
|
||||
parStream << PROGRAM_NAME << " Copyright (C) ";
|
||||
const uint32_t copyright_years[] = { COPYRIGHT_YEARS_LIST };
|
||||
std::copy(copyright_years, copyright_years + lengthof(copyright_years), infix_ostream_iterator<uint32_t>(parStream, ", "));
|
||||
parStream << " Michele Santullo\n";
|
||||
parStream << "This program comes with ABSOLUTELY NO WARRANTY.\n"; //for details type `show w'.
|
||||
parStream << "This is free software, and you are welcome to\n";
|
||||
parStream << "redistribute it under certain conditions.\n"; //type `show c' for details.
|
||||
|
|
|
@ -51,4 +51,6 @@
|
|||
# define WITH_NICE_MEDIA_TYPES
|
||||
#endif
|
||||
|
||||
#define COPYRIGHT_YEARS_LIST @DINDEXER_COPYRIGHT_YEARS@
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue