/* * Copyright (c) 1999, 2000, 2001, 2007 * Tama Communications Corporation * * This file is part of GNU GLOBAL. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifdef HAVE_CONFIG_H #include #endif #include #ifdef STDC_HEADERS #include #endif #include "version.h" const char *copy = "\ Copyright (c) 2007 Tama Communications Corporation\n\ License GPLv3+: GNU GPL version 3 or later \n\ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ This is also commercial (for-profit) software based on BOKIN model.\n\ Please see the donation page .\n\ "; /* * get_version: get version string. */ char * get_version(void) { return VERSION; } /* * version: print version information. */ void version(const char *name, const int verbose) { if (name == NULL) name = progname; /* always verbose according to the GNU coding standard */ /* fprintf(stdout, "%s\n", VERSION); */ fprintf(stdout, "%s - %s\n", name, PACKAGE_STRING); fprintf(stdout, "%s", copy); exit(0); }