From 0bc6fd0fea9e2664f3ed8dfec030e66d18557fc1 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Wed, 2 Dec 2009 12:37:26 +0100 Subject: Don't fail packaging the source if there's no zip. --- crawl-ref/source/makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/makefile') diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index 2f1e546a1d..c98ea8e42f 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -976,7 +976,12 @@ source: depend removeold > $(BSRC)util/release_ver cd build && mv crawl-ref $(PKG_SRC_DIR) cd build && tar cfj ../../../$(SRC_PKG_TAR) $(PKG_SRC_DIR) - cd build && zip -rq ../../../$(SRC_PKG_ZIP) $(PKG_SRC_DIR) + @if which zip >/dev/null; then \ + @echo "cd build && zip -rq ../../../$(SRC_PKG_ZIP) $(PKG_SRC_DIR)"; \ + cd build && zip -rq ../../../$(SRC_PKG_ZIP) $(PKG_SRC_DIR); \ + else \ + echo "**** No ZIP installed -- not creating the zipball."; \ + fi rm -rf build removeold: -- cgit v1.2.3-54-g00ecf