Makefile: alert when an older verison is found during update

This commit is contained in:
Tony Theodore 2013-03-31 20:26:34 +11:00
parent 75762edd48
commit 62d4c8c0ce
1 changed files with 3 additions and 1 deletions

View File

@ -231,7 +231,9 @@ define UPDATE
$(if $(filter $(2),$($(1)_IGNORE)),
$(info IGNORED $(1) $(2)),
$(if $(filter $(2),$(shell printf '$($(1)_VERSION)\n$(2)' | $(SORT) -V | head -1)),
$(info . $(1) $($(1)_VERSION)),
$(if $(filter $(2),$($(1)_VERSION)),
$(info . $(1) $(2)),
$(info OLD $(1) $($(1)_VERSION) --> $(2) ignoring)),
$(info NEW $(1) $($(1)_VERSION) --> $(2))
$(SED) -i 's/\( id="$(1)-version"\)>[^<]*/\1>$(2)/' '$(TOP_DIR)/index.html'
$(MAKE) -f '$(MAKEFILE)' 'update-checksum-$(1)' \