Skip to content

Instantly share code, notes, and snippets.

@pk
Created July 11, 2010 18:12
Show Gist options
  • Save pk/471725 to your computer and use it in GitHub Desktop.
Save pk/471725 to your computer and use it in GitHub Desktop.
#!/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
#!/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