]> granicus.if.org Git - icinga2/commitdiff
Dynamically print current copyright year in `--version` output
authorMichael Friedrich <michael.friedrich@icinga.com>
Mon, 7 Jan 2019 14:59:24 +0000 (15:59 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 25 Feb 2019 13:25:56 +0000 (14:25 +0100)
icinga-app/icinga.cpp

index e8d3f5bf37bcf8fc611cabaecdfa8dcc6c0bb426..ce3be0ef124ddd169a5dd8cc005e081dd844bf58 100644 (file)
@@ -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 <http://gnu.org/licenses/gpl2.html>" << 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.";