1 // 2 // srecord - manipulate eprom load files 3 // Copyright (C) 1998, 1999, 2002, 2006, 2007, 2010 Peter Miller 4 // 5 // This program is free software; you can redistribute it and/or modify it 6 // under the terms of the GNU Lesser General Public License as published by 7 // the Free Software Foundation; either version 3 of the License, or (at your 8 // option) any later version. 9 // 10 // This program is distributed in the hope that it will be useful, but WITHOUT 11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 13 // for more details. 14 // 15 // You should have received a copy of the GNU Lesser General Public License 16 // along with this program. If not, see <http://www.gnu.org/licenses/>. 17 // 18 19 #include <iostream> 20 21 #include <srecord/versn_stamp.h> 22 #include <srecord/patchlevel.h> 23 #include <srecord/progname.h> 24 25 26 const char * version_stamp(void)27srecord::version_stamp(void) 28 { 29 return PATCHLEVEL; 30 } 31 32 33 const char * copyright_years(void)34srecord::copyright_years(void) 35 { 36 return COPYRIGHT_YEARS; 37 } 38 39 40 void print_version(void)41srecord::print_version(void) 42 { 43 std::cout << progname_get() << " version " << version_stamp() << std::endl; 44 std::cout << "Copyright (C) " << copyright_years() << " Peter Miller" 45 << std::endl; 46 std::cout << std::endl; 47 std::cout << "The " << progname_get() 48 << " program comes with ABSOLUTELY NO WARRANTY;" << std::endl; 49 std::cout << "for details use the '" << progname_get() 50 << " -LICense' command." << std::endl; 51 std::cout << "The " << progname_get() 52 << " program is free software, and you are welcome" << std::endl; 53 std::cout << "to redistribute it under certain conditions; for" 54 << std::endl; 55 std::cout << "details use the '" << progname_get() << " -LICense' command." 56 << std::endl; 57 } 58