summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-02 12:37:26 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-02 12:41:26 +0100
commit0bc6fd0fea9e2664f3ed8dfec030e66d18557fc1 (patch)
tree60a043b4d4563723796691f375cba40e33ad06a5 /crawl-ref/source/makefile
parent80cae993cab5fdd220d593e1f2f54c9f902f562d (diff)
downloadcrawl-ref-0bc6fd0fea9e2664f3ed8dfec030e66d18557fc1.tar.gz
crawl-ref-0bc6fd0fea9e2664f3ed8dfec030e66d18557fc1.zip
Don't fail packaging the source if there's no zip.
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile7
1 files changed, 6 insertions, 1 deletions
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: