mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
Fix the version reporting.
$Id doesn't work in git, and didn't really report the right version anyway.
This commit is contained in:
parent
881d4babce
commit
272e955f18
1 changed files with 13 additions and 11 deletions
|
@ -73,7 +73,8 @@
|
||||||
domain qfadmin
|
domain qfadmin
|
||||||
|
|
||||||
global uservote cmds mapvote config
|
global uservote cmds mapvote config
|
||||||
global cvsheader = "$Id$"
|
//global cvsheader = "$Id$"
|
||||||
|
global qfadminversion = "1.17"
|
||||||
|
|
||||||
// QFAdmin console interface
|
// QFAdmin console interface
|
||||||
function qfadmin {
|
function qfadmin {
|
||||||
|
@ -238,19 +239,20 @@ function qfadmin::doVersion {
|
||||||
|
|
||||||
// Return the current version
|
// Return the current version
|
||||||
function qfadmin::getVersion {
|
function qfadmin::getVersion {
|
||||||
local tmp tmp2
|
// local tmp tmp2
|
||||||
|
|
||||||
tmp = $(split $cvsheader)
|
// tmp = $(split $cvsheader)
|
||||||
|
|
||||||
if $(equal $tmp[6] "Exp") {
|
// if $(equal $tmp[6] "Exp") {
|
||||||
tmp2 = "Beta"
|
// tmp2 = "Beta"
|
||||||
} else if $(equal $tmp[6] "Stab") {
|
// } else if $(equal $tmp[6] "Stab") {
|
||||||
tmp2 = "Stable"
|
// tmp2 = "Stable"
|
||||||
} else if $(equal $tmp[6] "Rel") {
|
// } else if $(equal $tmp[6] "Rel") {
|
||||||
tmp2 = "Release"
|
// tmp2 = "Release"
|
||||||
}
|
// }
|
||||||
|
|
||||||
return "QFAdmin v", $tmp[2], " (", $tmp[3], " ", $tmp2, ") by Harry Roberts"
|
// return "QFAdmin v", $tmp[2], " (", $tmp[3], " ", $tmp2, ") by Harry Roberts"
|
||||||
|
return "QFAdmin v", $qfadminversion, " by Harry Roberts"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear uservore & mapvote vars
|
// Clear uservore & mapvote vars
|
||||||
|
|
Loading…
Reference in a new issue