1
0
Fork 0
arangodb/utils/foxx-manager.in

18 lines
367 B
Bash

#!/bin/bash
# Placeholders starting with @ will be replaced by make
ARANGOSH="${ARANGODB_ROOT}@BINDIR@/arangosh"
RCFILE=""
if [ "$1" == "--relative" ] ; then
shift
ARANGOSH="./bin/arangosh"
RCFILE="-c etc/relative/arangosh.conf"
fi
$ARANGOSH \
$RCFILE \
--javascript.execute-string 'require("org/arangodb/foxx/manager").run(ARGUMENTS);' \
"$@"