From 18f4ce56e57fab2be0d3a9324e7a9e58ef4cf2e5 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Wed, 1 Mar 2017 13:49:04 +0100 Subject: [PATCH] add option to add the cookbook to the tarball and handle #2287 --- Documentation/Books/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/Books/Makefile b/Documentation/Books/Makefile index afd995231b..1cdf180f67 100644 --- a/Documentation/Books/Makefile +++ b/Documentation/Books/Makefile @@ -427,8 +427,15 @@ build-dist-books: DISPL="$${DISPLAY}"; \ fi; \ make build-books DISPLAY="$${DISP}"; \ - mkdir -p ${OUTPUT_DIR}; \ - ( cd books; tar -czf ${OUTPUT_DIR}/ArangoDB-${newVersionNumber}.tar.gz ${ALLBOOKS} index.html; ); \ + mkdir -p ${OUTPUT_DIR} ; \ + ( \ + mv books ArangoDB-${newVersionNumber} ; \ + if test -n "${COOKBOOK_DIR}" ; then \ + cp -a ${COOKBOOK_DIR} ArangoDB-${newVersionNumber}/cookbook ; \ + fi ; \ + tar -czf ${OUTPUT_DIR}/ArangoDB-${newVersionNumber}.tar.gz ArangoDB-${newVersionNumber} ; \ + mv ArangoDB-${newVersionNumber} books ; \ + ) ; \ for book in $(ALLBOOKS); do \ make build-book-dist NAME=$${book} DISPLAY="$${DISP}" ; \ done; \