Last active
December 31, 2015 21:29
-
-
Save DamirSvrtan/8047418 to your computer and use it in GitHub Desktop.
gem_builder.sh
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
if [ -z $1 ]; then | |
GEM_NAME=${PWD##*/} | |
else | |
GEM_NAME=$1 | |
fi | |
GEMSPEC="$GEM_NAME.gemspec" | |
if [ -f $GEMSPEC ];then | |
gem build $GEMSPEC | |
echo "----------------------------" | |
gem install $GEM_NAME | |
else | |
echo "\033[33;31m$GEMSPEC not found" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment