Created
December 11, 2014 16:32
-
-
Save mark-cooper/a2088f416058dc2b7937 to your computer and use it in GitHub Desktop.
Make it so archivesspace can find plugin gems by installing gems to the base gems folder
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