From c1fedab7aea73f6aa9c9357c54c409665239d698 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 --- 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 e8d3f5bf3..ce3be0ef1 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.";