1
0
Fork 0

add option to add the cookbook to the tarball and handle #2287

This commit is contained in:
Wilfried Goesgens 2017-03-01 13:49:04 +01:00
parent 6495e12aa1
commit 18f4ce56e5
1 changed files with 9 additions and 2 deletions

View File

@ -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; \