Moved version number to a single file (VERSION) to ease up

version bumping.
This commit is contained in:
Heikki Hannikainen 2013-06-26 07:53:29 +03:00
parent 5860f848b0
commit 280affbc4a
4 changed files with 5 additions and 3 deletions

View File

@ -124,6 +124,7 @@ version_data.h:
@echo "/* generated automatically by Makefile - mark your branch in version_branch.h */" > version_data.h.new
@echo "#ifndef VERSIONDATA_H" >> version_data.h.new
@echo "#define VERSIONDATA_H" >> version_data.h.new
@echo "#define VERSION \"$(VERSION)\"" >> version_data.h.new
@echo "#define SRCVERSION \"$(SRCVERSION)\"" >> version_data.h.new
@echo "#define BUILD_TIME \"$(BUILD_TIME)\"" >> version_data.h.new
@echo "#define BUILD_USER \"$(BUILD_USER)\"" >> version_data.h.new

View File

@ -156,7 +156,7 @@ static void http_header_base(struct evkeyvalq *headers, int last_modified)
http_date(dbuf, sizeof(dbuf), tick);
evhttp_add_header(headers, "Server", PROGNAME "/" VERSION);
evhttp_add_header(headers, "Server", verstr_http);
evhttp_add_header(headers, "Date", dbuf);
if (last_modified) {

View File

@ -9,6 +9,7 @@
const char version_build[] = VERSION "-" SRCVERSION VERSION_BRANCH;
const char verstr[] = PROGNAME " " VERSION "-" SRCVERSION VERSION_BRANCH;
const char verstr_aprsis[] = PROGNAME " " VERSION "-" SRCVERSION VERSION_BRANCH;
const char verstr_http[] = PROGNAME "/" VERSION;
const char verstr_build_time[] = BUILD_TIME;
const char verstr_build_user[] = BUILD_USER;

View File

@ -8,17 +8,17 @@
#ifndef VERSION_H
#define VERSION_H
/* Mainline version number - please don't modify this.
/*
* If you're making modifications, put your own variant version
* identification in version_branch.h. Thanks!
*/
#define VERSION "2.0.5"
#define APRSC_TOCALL "APSC20"
extern const char version_build[];
extern const char verstr[];
extern const char verstr_aprsis[];
extern const char verstr_http[];
extern const char verstr_build_time[];
extern const char verstr_build_user[];
extern const char verstr_features[];