mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +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
|
||||
|
||||
global uservote cmds mapvote config
|
||||
global cvsheader = "$Id$"
|
||||
//global cvsheader = "$Id$"
|
||||
global qfadminversion = "1.17"
|
||||
|
||||
// QFAdmin console interface
|
||||
function qfadmin {
|
||||
|
@ -238,19 +239,20 @@ function qfadmin::doVersion {
|
|||
|
||||
// Return the current version
|
||||
function qfadmin::getVersion {
|
||||
local tmp tmp2
|
||||
// local tmp tmp2
|
||||
|
||||
tmp = $(split $cvsheader)
|
||||
// tmp = $(split $cvsheader)
|
||||
|
||||
if $(equal $tmp[6] "Exp") {
|
||||
tmp2 = "Beta"
|
||||
} else if $(equal $tmp[6] "Stab") {
|
||||
tmp2 = "Stable"
|
||||
} else if $(equal $tmp[6] "Rel") {
|
||||
tmp2 = "Release"
|
||||
}
|
||||
// if $(equal $tmp[6] "Exp") {
|
||||
// tmp2 = "Beta"
|
||||
// } else if $(equal $tmp[6] "Stab") {
|
||||
// tmp2 = "Stable"
|
||||
// } else if $(equal $tmp[6] "Rel") {
|
||||
// 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
|
||||
|
|
Loading…
Reference in a new issue