Created
June 4, 2014 20:38
-
-
Save mark-cooper/c8fab2efc1ccb178da4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
plugin="$1" | |
export ASPACE_LAUNCHER_BASE="$("`dirname $0`"/find-base.sh)" | |
cd "$ASPACE_LAUNCHER_BASE/plugins/$plugin" | |
if [ "$plugin" = "" ]; then | |
echo "Usage: $0 <plugin name>" | |
exit | |
fi | |
if [ "$?" != "0" ]; then | |
echo "Failed to find plugin: $plugin" | |
exit | |
fi | |
export JRUBY= | |
for dir in ../../gems/gems/jruby-*; do | |
JRUBY="$JRUBY:$dir/lib/*" | |
done | |
export GEM_HOME="$ASPACE_LAUNCHER_BASE/gems" | |
java $JAVA_OPTS -cp "../../lib/*$JRUBY" org.jruby.Main --1.9 ../../gems/bin/bundle install --gemfile=Gemfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment