From: Ben Hutchings Date: Thu, 3 Mar 2011 02:36:42 +0000 (+0000) Subject: Treat beta versions as having a version component of -1 X-Git-Tag: 1.2.11~11 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=10108768c2cc492b568ea16ff208c7947825977f;p=videolink.git Treat beta versions as having a version component of -1 --- 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)))