X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=version.c;h=695675613398c1ae52867bbd3a04c27bc81145db;hp=f8f7e6a33f69a4624f347e8b2c95f88e61111bb7;hb=a7b65e41e2062c44c535f7cb4609e7988fc8ac0d;hpb=571f94f98edecfb922eefa7a56ba5e8328978046 diff --git a/version.c b/version.c index f8f7e6a3..69567561 100644 --- a/version.c +++ b/version.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Andre Noll + * Copyright (C) 2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -7,29 +7,16 @@ /** \file version.c Some helpers for printing version and copyright strings. */ #include "para.h" - -/** \file version.h Macros for printing the version string. */ - +#include "version.h" #include "git-version.h" -/** - * Get the raw git version string - * - * \return The string generated by the GIT-VERSION-GEN script. It is passed - * as a preprocessor define during compilation. - */ -__a_const const char *version_git(void) -{ - return GIT_VERSION; -} - /** * Get the version string for an executable. * * \param pfx The program name (without the leading "para_"). * - * \return A statically allocated string which contains the program name, the - * git version and the codename. It must not be freed by the caller. + * \return A statically allocated string which contains the program name and + * the git version. It must not be freed by the caller. */ const char *version_single_line(const char *pfx) { @@ -56,10 +43,10 @@ const char *version_text(const char *pfx) static char buf[512]; snprintf(buf, sizeof(buf) - 1, "%s\n" - "Copyright (C) 2013 Andre Noll\n" + "Copyright (C) 2002-2015 Andre Noll\n" "This is free software with ABSOLUTELY NO WARRANTY." " See COPYING for details.\n" - "Report bugs to .\n" + "Report bugs to .\n" "build date: " BUILD_DATE ",\n" "build system: " UNAME_RS ",\n" "compiler: " CC_VERSION ".\n",