releasing: Fix the check for an even micro version number

The check for the version number was checking against the 2.0.0 micro
version number which isn't expected to change for a long time so the
test was useless.
This commit is contained in:
Neil Roberts 2011-07-01 15:34:49 +01:00
parent b11f6c9e11
commit cfe5a0a285

View File

@ -59,9 +59,9 @@ release-verify-sane-changelogs: changelogs
release-verify-even-micro: release-verify-even-micro:
@echo -n "Checking that $(VERSION) has an even micro component..." @echo -n "Checking that $(VERSION) has an even micro component..."
@test "$(COGL_MICRO_VERSION)" = "`echo $(COGL_MICRO_VERSION)/2*2 | bc`" || \ @test "$(COGL_1_MICRO_VERSION)" = "`echo $(COGL_1_MICRO_VERSION)/2*2 | bc`" || \
(echo "Ouch." && \ (echo "Ouch." && \
echo "The version micro component '$(COGL_MICRO_VERSION)' is not an even number." && \ echo "The version micro component '$(COGL_1_MICRO_VERSION)' is not an even number." && \
echo "The version in configure.ac must be incremented before a new release." && \ echo "The version in configure.ac must be incremented before a new release." && \
false) false)
@echo "Good." @echo "Good."