Skip to content

Commit

Permalink
MAIN: Add AGPLv3 info and source URL to --version
Browse files Browse the repository at this point in the history
Bump to 1.0.1
  • Loading branch information
DrMcCoy committed Jun 15, 2014
1 parent dd4daf4 commit 01e8d1b
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Someday, ????-??-?? (Version 1.0.1)
- ???
Sunday, 2014-06-15 (Version 1.0.1)
- Add copyright note, license information and GitHub URL to the --version text

Saturday, 2014-06-14 (Version 1.0.0)
- CoktelADL2VGM can now search through a whole game directory
Expand Down
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ PROJECT_NAME = CoktelADL2VGM
# This could be handy for archiving the generated documentation or
# if some version control system is used.

PROJECT_NUMBER = 1.0.0
PROJECT_NUMBER = 1.0.1

# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AC_PREREQ([2.65])

AC_INIT([CoktelADL2VGM],[1.0.0])
AC_INIT([CoktelADL2VGM],[1.0.1])

AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([config.h.in])
Expand Down
15 changes: 15 additions & 0 deletions src/cokteladl2vgm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,21 @@ void printUsage(const char *name) {
/** Print the tool's version. */
void printVersion() {
std::printf("%s\n", ADL2VGM_NAMEVERSION);
std::printf("Copyright (c) %s %s\n", ADL2VGM_COPYRIGHTYEAR, ADL2VGM_COPYRIGHTAUTHOR);
std::printf("%s\n", ADL2VGM_URL);
std::printf("\n");
std::printf("%s is free software; you can redistribute it and/or\n", ADL2VGM_NAME);
std::printf("modify it under the terms of the GNU Affero General Public License\n");
std::printf("as published by the Free Software Foundation; either version 3\n");
std::printf("of the License, or (at your option) any later version.\n");
std::printf("\n");
std::printf("%s is distributed in the hope that it will be useful,\n", ADL2VGM_NAME);
std::printf("but WITHOUT ANY WARRANTY; without even the implied warranty of\n");
std::printf("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n");
std::printf("GNU Affero General Public License for more details.\n");
std::printf("\n");
std::printf("You should have received a copy of the GNU Affero General Public License\n");
std::printf("along with %s. If not, see <http://www.gnu.org/licenses/>.\n", ADL2VGM_NAME);
}

Job parseCommandLine(int argc, char **argv) {
Expand Down
5 changes: 4 additions & 1 deletion src/common/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@
#endif

#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "1.0.0"
#define PACKAGE_VERSION "1.0.1"
#endif

const char *ADL2VGM_NAME = PACKAGE_NAME;
const char *ADL2VGM_VERSION = PACKAGE_VERSION;
const char *ADL2VGM_NAMEVERSION = PACKAGE_NAME " " PACKAGE_VERSION;
const char *ADL2VGM_COPYRIGHTYEAR = "2014";
const char *ADL2VGM_COPYRIGHTAUTHOR = "Sven Hesse (DrMcCoy) <[email protected]>";
const char *ADL2VGM_URL = "https://github.com/DrMcCoy/CoktelADL2VGM";
9 changes: 9 additions & 0 deletions src/common/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,13 @@ extern const char *ADL2VGM_VERSION;
// "CoktelADL2VGM 0.0.0"
extern const char *ADL2VGM_NAMEVERSION;

// "2014"
extern const char *ADL2VGM_COPYRIGHTYEAR;

// "Sven Hesse (DrMcCoy) <[email protected]>"
extern const char *ADL2VGM_COPYRIGHTAUTHOR;

// "https://..."
extern const char *ADL2VGM_URL;

#endif // COMMON_VERSION_HPP

0 comments on commit 01e8d1b

Please sign in to comment.