Quantcast

Changed @project-revision@ to @project-version@ in the ToC and in user-visible places.

James D. Callahan III [04-24-10 - 04:37]
Changed @project-revision@ to @project-version@ in the ToC and in user-visible places.
Filename
ARL.lua
AckisRecipeList.toc
Frame.lua
diff --git a/ARL.lua b/ARL.lua
index 9a51941..4574270 100644
--- a/ARL.lua
+++ b/ARL.lua
@@ -400,8 +400,7 @@ function addon:OnInitialize()
 		return
 	end
 	local version = GetAddOnMetadata("AckisRecipeList", "Version")
-	version = string.gsub(version, "@project.revision@", "Devel")
-	self.version = version
+	self.version = (version == "@project-version@") and "Devel" or version

 	self:SetupOptions()

diff --git a/AckisRecipeList.toc b/AckisRecipeList.toc
index a73fcfb..55d10a2 100644
--- a/AckisRecipeList.toc
+++ b/AckisRecipeList.toc
@@ -33,8 +33,8 @@
 ## X-Donate: http://www.wowace.com/addons/arl/#w-donations

 ## Interface: 30300
-## Version: 1.0 @project-revision@
-## X-Revision: @project-revision@
+## Version: @project-version@
+## X-Revision: @project-abbreviated-hash@
 ## X-Date: @file-date-iso@

 ## X-Credits: FGWarmonger, Kagaro, Speeddymon, Xinhuan, Aesir, BWMerlin, everyone who translated stuff and more!
diff --git a/Frame.lua b/Frame.lua
index 9e06b81..2464407 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -1241,7 +1241,7 @@ end

 function MainPanel:UpdateTitle()
 	if not self.is_expanded then
-		self.title_bar:SetFormattedText(SetTextColor(BASIC_COLORS["normal"], "ARL (v.%s) - %s"), addon.version, Player.current_prof)
+		self.title_bar:SetFormattedText(SetTextColor(BASIC_COLORS["normal"], "ARL (%s) - %s"), addon.version, Player.current_prof)
 		return
 	end
 	local total, active = 0, 0
@@ -1254,7 +1254,7 @@ function MainPanel:UpdateTitle()
 			total = total + 1
 		end
 	end
-	self.title_bar:SetFormattedText(SetTextColor(BASIC_COLORS["normal"], "ARL (v.%s) - %s (%d/%d %s)"), addon.version, Player.current_prof, active, total, _G.FILTERS)
+	self.title_bar:SetFormattedText(SetTextColor(BASIC_COLORS["normal"], "ARL (%s) - %s (%d/%d %s)"), addon.version, Player.current_prof, active, total, _G.FILTERS)
 end

 -------------------------------------------------------------------------------