Modify project version output
Erik L. Vonderscheer [01-15-11 - 23:30]
Modify project version output
Wowinterface needs more Git keyword substitutions
diff --git a/TradeFilter3.lua b/TradeFilter3.lua
index f3e99cc..5e5d9ce 100644
--- a/TradeFilter3.lua
+++ b/TradeFilter3.lua
@@ -63,13 +63,11 @@ local msgsBlackFiltered = 0
TF3.currentPartyMembers = {}
-local MAJOR_VERSION = "@project-version@"
-if (select(3,find(MAJOR_VERSION, "(%a+)")) == "beta") then
- TF3.version = sub(MAJOR_VERSION, 0, 10)
-elseif (select(3,find(MAJOR_VERSION, "(%a+)")) == "release") then
- TF3.version = sub(MAJOR_VERSION, 0, 13)
+local MAJOR_VERSION = GetAddOnMetadata("TradeFilter3", "Version")
+if (select(3,find(MAJOR_VERSION, "(%a+)")) == "v") then
+ TF3.version = sub(MAJOR_VERSION, 0, 6)
else
- TF3.version = sub(MAJOR_VERSION, -8) .. " DEV"
+ TF3.version = sub(MAJOR_VERSION, 0, 15) .. " DEV"
end
TF3.date = "@file-date-iso@"