Canola  0.8.D001
lib/print_version.cc
Go to the documentation of this file.
00001 //
00002 // canola - canon canola 1614p emulator
00003 // Copyright (C) 2011 Peter Miller
00004 //
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License, version 3, as
00007 // published by the Free Software Foundation.
00008 //
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012 // General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU General Public License
00015 // along with this program. If not, see <http://www.gnu.org/licenses/>.
00016 //
00017 
00018 #include <lib/config.h>
00019 #include <iostream>
00020 #include <libexplain/program_name.h>
00021 
00022 #include <lib/print_version.h>
00023 #include <lib/version.h>
00024 
00025 
00026 void
00027 print_version(void)
00028 {
00029     std::cout
00030         << explain_program_name_get() << " version " << version()
00031         << "\n"
00032            "Copyright (C) " << copyright_years() << " " << copyright_owner()
00033         << "\n"
00034            "This program comes with ABSOLUTELY NO WARRANTY; for\n"
00035            "details see the LICENSE file in the source package.\n"
00036            "This program is free software, and you are welcome to\n"
00037            "redistribute it under certain conditions; for details\n"
00038            "see the LICENSE file.\n"
00039            ;
00040 }