Created
July 11, 2010 18:12
-
-
Save pk/471725 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 | |
CURRENT_DIR=`pwd` | |
for dir in $(find $1 -type d -depth 1 -not -name "\.*"); | |
do | |
cd $dir | |
if [ -f *.gem ]; then | |
rm -rv *.gem | |
fi | |
gem build *.gemspec | |
cd $CURRENT_DIR | |
done |
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 | |
CURRENT_DIR=`pwd` | |
for gem in $(find $1 -type f -depth 2 -name *.gem); | |
do | |
echo $gem | |
gem push $gem | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment