bugfix for "make update": avoid silent package update failures

This commit is contained in:
Volker Grabsch 2009-10-28 13:36:27 +01:00
parent 3d7257b7e1
commit cd4b24fe7a
1 changed files with 2 additions and 1 deletions

View File

@ -210,7 +210,8 @@ define UPDATE
$(info NEW $(1) $($(1)_VERSION) --> $(2))
$(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' -i '$(TOP_DIR)/src/$(1).mk'
$(MAKE) -f '$(MAKEFILE)' 'update-checksum-$(1)' \
|| $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $($(1)_VERSION)/' -i '$(TOP_DIR)/src/$(1).mk')),
|| { $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $($(1)_VERSION)/' -i '$(TOP_DIR)/src/$(1).mk'; \
exit 1; })),
$(error Unable to update version number: $(1)))
endef