Mercurial > mxe-octave
changeset 310:5c5e254fa32b
bugfix in handling checksums
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 05 Apr 2009 16:11:11 +0200 |
parents | 8a9724a74a68 |
children | ce0d27e7993f |
files | Makefile |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sun Apr 05 15:29:54 2009 +0200 +++ b/Makefile Sun Apr 05 16:11:11 2009 +0200 @@ -72,10 +72,10 @@ $(PREFIX)/installed-$(1): $(TOP_DIR)/src/$(1).mk $(addprefix $(PREFIX)/installed-,$($(1)_DEPS)) [ -d '$(PREFIX)' ] || mkdir -p '$(PREFIX)' [ -d '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)' - $(if $$(shell $(call CHECK_PKG_ARCHIVE,$(1)) || echo 'error'), - $(call DOWNLOAD_PKG_ARCHIVE,$(1)) - $(call CHECK_PKG_ARCHIVE,$(1)) - ,) + if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \ + $(call DOWNLOAD_PKG_ARCHIVE,$(1)); \ + $(call CHECK_PKG_ARCHIVE,$(1)) || { echo 'Wrong checksum!'; exit 1; }; \ + fi $(if $(value $(1)_BUILD), rm -rf '$(2)' mkdir -p '$(2)'