From ebabc9ef6daf107b933084550b333e891e9e868a Mon Sep 17 00:00:00 2001 From: "Erik L. Vonderscheer" Date: Sun, 16 Aug 2009 06:26:26 +0000 Subject: [PATCH] Cleaning up revisioning --- TradeFilter3.lua | 12 ++++++++---- TradeFilter3Options.lua | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/TradeFilter3.lua b/TradeFilter3.lua index ec140e0..32714a7 100644 --- a/TradeFilter3.lua +++ b/TradeFilter3.lua @@ -38,11 +38,15 @@ local friends = LibStub("LibFriends-1.0") local LDB = LibStub("LibDataBroker-1.1", true) local TF3 = TradeFilter3 -local MAJOR_VERSION = "3.1" -local MINOR_VERSION = 000 + tonumber(("$Revision: @project-revision@ $"):match("%d+")) -TF3.version = MAJOR_VERSION .. "." .. MINOR_VERSION +local MAJOR_VERSION = 3 +local MINOR_VERSION = 1 +local BUILD = 0 +local REVISION = 000 + tonumber(("$Revision: @project-revision@ $"):match("%d+")) +TF3.version = MAJOR_VERSION .. "." .. MINOR_VERSION .. "." .. BUILD TF3.date = string.sub("$Date: @file-date-iso@ $", 8, 17) +local project.version = "@project-version@" + --[[ Locals ]]-- local ipairs = ipairs local pairs = pairs @@ -111,7 +115,7 @@ function TF3:OnInitialize() local AC = LibStub("AceConsole-3.0") AC:RegisterChatCommand("tf", function() TF3:OpenOptions() end) AC:RegisterChatCommand("filter", function() TF3:OpenOptions() end) - AC:Print(L.TOC.Title .. " " .. MAJOR_VERSION .. "." .. MINOR_VERSION .. " " .. L["LOADED"]) + AC:Print(L.TOC.Title .. " " .. TF3.version .. " " .. L["ENABLED"]) local ACR = LibStub("AceConfigRegistry-3.0") ACR:RegisterOptionsTable("TradeFilter3", options) diff --git a/TradeFilter3Options.lua b/TradeFilter3Options.lua index c8e7023..314e6a8 100644 --- a/TradeFilter3Options.lua +++ b/TradeFilter3Options.lua @@ -26,7 +26,7 @@ options = { args = { mainHeader = { type = "description", - name = " " .. L["NJAOF"] .. "\n\n", + name = " " .. L["NJAOF"] .. "\n Version " .. TF3.version .. "\n", order = 1, image = "Interface\\Icons\\Ability_Warrior_RallyingCry", imageWidth = 32, imageHeight = 32, -- 1.7.9.5