]> git.decadent.org.uk Git - videolink.git/commitdiff
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 7238b7b3739ca5aa4ec7fdf4cd8f2d499713bf65..380c7a04a59424e293c7394aac6fa4f8bb7a0869 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)))