mirror of https://gitee.com/bigwinds/arangodb
18 lines
367 B
Bash
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);' \
|
|
"$@"
|