mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 22:37:04 +00:00
[6800] Added revision number output.
* Changed genrevision to use * instead of unknown when some info can not be found * Added the git_id tool which is used to generate changes to revision_nr.h and the commit message
This commit is contained in:
parent
b681f5ac1a
commit
cfd9ccdaaf
12 changed files with 460 additions and 14 deletions
|
|
@ -46,6 +46,7 @@ libmangosshared_a_SOURCES = \
|
|||
Util.cpp \
|
||||
Util.h \
|
||||
WorldPacket.h \
|
||||
revision_nr.h \
|
||||
revision.h
|
||||
|
||||
# Get revision (git or svn)
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@
|
|||
|
||||
#ifndef _VERSION
|
||||
#if PLATFORM == PLATFORM_WINDOWS
|
||||
# define _VERSION(REVD,REVT,REV) "0.12.0-DEV" " (" REVD " " REVT " Revision " REV ")"
|
||||
# define _VERSION(REVD,REVT,REVN,REVH) "0.12.0-DEV" " (" REVD " " REVT " Revision " REVN " - " REVH ")"
|
||||
#else
|
||||
# define _VERSION(REVD,REVT,REV) "@VERSION@" " (" REVD " " REVT " Revision " REV ")"
|
||||
# define _VERSION(REVD,REVT,REVN,REVH) "@VERSION@" " (" REVD " " REVT " Revision " REVN " - " REVH ")"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
# define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
|
||||
#endif
|
||||
|
||||
#define _FULLVERSION(REVD,REVT,REV) _PACKAGENAME "/" _VERSION(REVD,REVT,REV) " for " _ENDIAN_PLATFORM
|
||||
#define _FULLVERSION(REVD,REVT,REVN,REVH) _PACKAGENAME "/" _VERSION(REVD,REVT,REVN,REVH) " for " _ENDIAN_PLATFORM
|
||||
|
||||
#define DEFAULT_PLAYER_LIMIT 100
|
||||
#define DEFAULT_WORLDSERVER_PORT 8085 //8129
|
||||
|
|
|
|||
4
src/shared/revision_nr.h
Normal file
4
src/shared/revision_nr.h
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "6800"
|
||||
#endif // __REVISION_NR_H__
|
||||
Loading…
Add table
Add a link
Reference in a new issue