0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00
mongodb/dbshell
Eliot Horowitz 345b5e78b6 fix patht
2009-01-10 19:52:34 -05:00

26 lines
744 B
Bash
Executable File

#!/bin/bash
cd `dirname $0`
export CLASSPATH=.:jars:
for j in `find jars \( -name webtest -type d \) -prune -o -type f -name '*.jar' -print`; do
export CLASSPATH="$CLASSPATH":$j
done
export CLASSPATH="$CLASSPATH":/opt/java/lib/tools.jar
export java_lib_path="-Djava.library.path=include"
export headless="-Djava.awt.headless=true"
export standard_options="-enableassertions $java_lib_path $headless $jruby_home"
export memory_large="-Xmx1000m -XX:MaxDirectMemorySize=600M"
export memory_small="-Xmx200m -XX:MaxDirectMemorySize=200M"
export java_memory_large="java $standard_options $memory_large"
export java_memory_small="java $standard_options $memory_small"
export ED_HOME="jars/babble.jar"
$java_memory_small ed.db.Shell "$@"