From 10108768c2cc492b568ea16ff208c7947825977f Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Thu, 3 Mar 2011 02:36:42 +0000 Subject: [PATCH] Treat beta versions as having a version component of -1 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 7238b7b..380c7a0 100644 --- 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))) -- 2.39.5