Fix bug 688719 - Automate setting minversion/maxversion for release builds. r=me,a=philipp
authorPhilipp Kewisch <mozilla@kewis.ch>
Wed, 22 Aug 2012 17:46:19 +0200
changeset 12561 eab42b091d5d38ef9d7bf9ea5571df1e9f194169
parent 12560 c45b2cea68a6700701f9734dd9c3a476b00ab635
child 12562 0153be6d42cd4eddeb5fac5704b78fb272d2fcf5
push id648
push usermozilla@kewis.ch
push dateWed, 22 Aug 2012 15:47:14 +0000
treeherdercomm-beta@eab42b091d5d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, philipp
bugs688719
Fix bug 688719 - Automate setting minversion/maxversion for release builds. r=me,a=philipp
calendar/lightning/Makefile.in
--- a/calendar/lightning/Makefile.in
+++ b/calendar/lightning/Makefile.in
@@ -25,20 +25,22 @@ PREF_JS_EXPORTS = $(srcdir)/content/ligh
 
 # Lighting version number
 LIGHTNING_VERSION := $(shell cat $(srcdir)/../sunbird/config/version.txt)
 THUNDERBIRD_VERSION := $(shell cat $(topsrcdir)/mail/config/version.txt)
 SEAMONKEY_VERSION := $(shell cat $(topsrcdir)/suite/config/version.txt)
 
 # For extensions we require a max version that is compatible across security releases.
 # THUNDERBIRD_MAXVERSION and SEAMONKEY_MAXVERSION is our method for doing that.
-# 10.0a1 and 10.0a2 aren't affected, 10.0 becomes 10.0.*, 10.0.1 becomes 10.0.*
+# Alpha versions 10.0a1 and 10.0a2 aren't affected
+# For Seamonkey, 2.17 becomes 2.17.*, 2.17.1 becomes 2.17.*
+# For Thunderbird, 10.0 becomes 10.*, 10.0.1 becomes 10.*
 THUNDERBIRD_MAXVERSION := $(THUNDERBIRD_VERSION)
 ifneq (a,$(findstring a,$(THUNDERBIRD_VERSION)))
-THUNDERBIRD_MAXVERSION := $(shell echo $(THUNDERBIRD_VERSION) | sed "s|\(^[0-9]*.[0-9]*\).*|\1|" ).*
+THUNDERBIRD_MAXVERSION := $(shell echo $(THUNDERBIRD_VERSION) | sed "s|\(^[0-9]*\)\.\([0-9]*\).*|\1|" ).*
 endif
 
 SEAMONKEY_MAXVERSION := $(SEAMONKEY_VERSION)
 ifneq (a,$(findstring a,$(SEAMONKEY_VERSION)))
 SEAMONKEY_MAXVERSION := $(shell echo $(SEAMONKEY_VERSION) | sed "s|\(^[0-9]*.[0-9]*\).*|\1|" ).*
 endif
 
 ifneq (,$(findstring pre,$(LIGHTNING_VERSION)))