#!/bin/bash cp forward_calendar.gemspec forward_calendar.gemspec.backup sed -i.bak s/0.0.0/$1/g forward_calendar.gemspec sed -i.bak s/2001-01-01/`date +%Y-%m-%d`/g forward_calendar.gemspec gem build forward_calendar.gemspec mv forward_calendar.gemspec.backup forward_calendar.gemspec gem push forward_calendar-$1.gem git tag -a v$1 -m "Release v$1" git push origin --tags