]> 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 15:41:39 +0000 (16:41 +0100)
(cherry picked from commit c1fedab7aea73f6aa9c9357c54c409665239d698)

icinga-app/icinga.cpp

index b97e79e8337bfc6f74d803e144d36ec21081b459..1f8f635cc69b3b049554fce3858b96503f76621e 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.";