| 1 | /*** version.c **************************************************************** |
| 2 | ** |
| 3 | ** This file is part of BibTool. |
| 4 | ** It is distributed under the GNU General Public License. |
| 5 | ** See the file COPYING for details. |
| 6 | ** |
| 7 | ** (c) 1996-2020 Gerd Neugebauer |
| 8 | ** |
| 9 | ** Net: [email protected] |
| 10 | ** |
| 11 | ** This program is free software; you can redistribute it and/or modify |
| 12 | ** it under the terms of the GNU General Public License as published by |
| 13 | ** the Free Software Foundation; either version 2, or (at your option) |
| 14 | ** any later version. |
| 15 | ** |
| 16 | ** This program is distributed in the hope that it will be useful, |
| 17 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | ** GNU General Public License for more details. |
| 20 | ** |
| 21 | ** You should have received a copy of the GNU General Public License |
| 22 | ** along with this program; if not, write to the Free Software |
| 23 | ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 24 | ** |
| 25 | ******************************************************************************/ |
| 26 | |
| 27 | #include <bibtool/error.h> |
| 28 | |
| 29 | /*----------------------------------------------------------------------------- |
| 30 | ** Variable: bibtool_version |
| 31 | ** Type: char * |
| 32 | ** Purpose: This string variable contains the version number of |
| 33 | ** \BibTool. Usually it is of the form |
| 34 | ** \textit{major.minor} where \textit{major} and |
| 35 | ** \textit{minor} are the major and minor version |
| 36 | ** numbers. In addition a post-fix like |alpha| or a |
| 37 | ** patch level like |p1| can be present. |
| 38 | **___________________________________________________ */ |
| 39 | char * bibtool_version = "2.68"; /* */ |
| 40 | |
| 41 | /*----------------------------------------------------------------------------- |
| 42 | ** Variable: bibtool_year |
| 43 | ** Type: char * |
| 44 | ** Purpose: This string variable contains the publication year for this |
| 45 | ** version. |
| 46 | **___________________________________________________ */ |
| 47 | char * bibtool_year = "2019"; /* */ |
| 48 | |
| 49 | /*----------------------------------------------------------------------------- |
| 50 | ** Function: show_version() |
| 51 | ** Purpose: Print the version number and a short copyright notice |
| 52 | ** onto the error stream. |
| 53 | ** Arguments: none |
| 54 | ** Returns: nothing |
| 55 | **___________________________________________________ */ |
| 56 | void show_version() /* */ |
| 57 | { /* */ |
| 58 | ErrPrintF2("BibTool Vers. %s (C) 1996-%s Gerd Neugebauer\n\n",/* */ |
| 59 | bibtool_version, bibtool_year); /* */ |
| 60 | } /*------------------------*/ |