From 47c969eadc21de59afd2101d26676e15ccca200b Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 7 Jan 2019 15:59:24 +0100 Subject: [PATCH] Dynamically print current copyright year in `--version` output (cherry picked from commit c1fedab7aea73f6aa9c9357c54c409665239d698) --- icinga-app/icinga.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icinga-app/icinga.cpp b/icinga-app/icinga.cpp index b97e79e83..1f8f635cc 100644 --- a/icinga-app/icinga.cpp +++ b/icinga-app/icinga.cpp @@ -543,7 +543,8 @@ static int Main() } if (vm.count("version")) { - std::cout << "Copyright (c) 2012-2018 Icinga Development Team (https://icinga.com/)" << std::endl + std::cout << "Copyright (c) 2012-" << Utility::FormatDateTime("%Y", Utility::GetTime()) + << " Icinga GmbH (https://icinga.com/)" << std::endl << "License GPLv2+: GNU GPL version 2 or later " << std::endl << "This is free software: you are free to change and redistribute it." << std::endl << "There is NO WARRANTY, to the extent permitted by law.";