1
0
Fork 0

Doc - Dump program options only if on Enterprise Edition (#8504)

This commit is contained in:
Simran 2019-03-21 13:15:39 +01:00 committed by GitHub
parent dbfa483374
commit 87eafe7357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 8 deletions

View File

@ -16,8 +16,8 @@ DBDIR="out${PS}data-$PID"
mkdir -p ${DBDIR}
echo Database has its data in ${DBDIR}
echo Logfile is in ${LOGFILE}
echo "Database has its data in ${DBDIR}"
echo "Logfile is in ${LOGFILE}"
if [ $(uname -s) == "Darwin" ]; then
EXEC_PATH="$(dirname "$(dirname "$0")")"
@ -48,12 +48,16 @@ fi
[ "$(uname -s)" != "Darwin" -a -x "${ARANGOSH}" ] && ARANGOSH="$(readlink -m "${ARANGOSH}")"
[ "$(uname -s)" = "Darwin" -a -x "${ARANGOSH}" ] && ARANGOSH="$(cd -P -- "$(dirname -- "${ARANGOSH}")" && pwd -P)/$(basename -- "${ARANGOSH}")"
ALLPROGRAMS="arangobench arangod arangodump arangoexport arangoimport arangoinspect arangorestore arangosh"
for HELPPROGRAM in ${ALLPROGRAMS}; do
"${BIN_PATH}/${HELPPROGRAM}${EXT}" --dump-options > "Documentation/Examples/${HELPPROGRAM}.json"
done
if "${ARANGOSH}" --version | grep -q "^enterprise-version: enterprise$"; then
ALLPROGRAMS="arangobench arangod arangodump arangoexport arangoimport arangoinspect arangorestore arangosh"
for HELPPROGRAM in ${ALLPROGRAMS}; do
echo "Dumping program options of ${HELPPROGRAM}"
"${BIN_PATH}/${HELPPROGRAM}${EXT}" --dump-options > "Documentation/Examples/${HELPPROGRAM}.json"
done
else
# should stop people from committing the JSON files without EE options
echo "Skipping program option dump (requires Enterprise Edition binaries)"
fi
"${ARANGOSH}" \
--configuration none \