Treat beta versions as having a version component of -1
authorBen Hutchings <ben@decadent.org.uk>
Thu, 3 Mar 2011 02:36:42 +0000 (02:36 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 3 Mar 2011 02:36:42 +0000 (02:36 +0000)
Makefile

index 7238b7b..380c7a0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,8 @@ moz_include_dir := $(shell pkg-config --variable=includedir $(moz_pc))
 moz_lib_dir := $(moz_prefix)/lib/$(moz_name)
 
 moz_version := $(shell pkg-config --modversion $(moz_pc))
+# HACK: Replace 'b' for beta with micro=-1
+moz_version := $(subst b,.-1.,$(moz_version))
 moz_version_major := $(word 1,$(subst ., ,$(moz_version)))
 moz_version_minor := $(word 2,$(subst ., ,$(moz_version)))
 moz_version_micro := $(word 3,$(subst ., ,$(moz_version)))