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
# configure | |
lang8=$LANG8_HOME | |
ruby_version=$RUBY_VERSION | |
# functions#{{{ | |
evaluate() { | |
echo $1 | |
eval $1 | |
} | |
homebrew () { | |
if [ `brew --prefix ${1}` ]; then | |
echo "Installed: ${1}" | |
else | |
brew install ${1} | |
fi | |
} | |
#}}} | |
# install programs | |
homebrew "memcached" | |
homebrew "mysql" | |
homebrew "redis" | |
homebrew "mecab" | |
homebrew "mecab-ipadic" | |
homebrew "imagemagick" | |
homebrew "pkg-config" | |
homebrew "libtool" | |
evaluate "brew link libtool --force" | |
evaluate "cd ${lang8}" | |
evaluate "rbenv local ${ruby_version}" | |
# copy/paste files | |
evaluate "cp config/database.yml.example config/database.yml" | |
evaluate "cp config/config.yml.example config/config.yml" | |
evaluate "cp config/resque.yml.example config/resque.yml" | |
evaluate "cp config/seed_fu.yml.example config/seed_fu.yml" | |
evaluate "cd vendor/plugins/PayPalSDK/lib/; cp config/paypal.rb.example config/paypal.rb" | |
# initialize database | |
evaluate "cd ${lang8}" | |
evaluate "rake db:reset_all" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment