Created
July 9, 2010 14:40
-
-
Save ColinHarrington/469536 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
function switchGrails() { | |
echo "Switching to groovy version: $1" | |
echo "Switching to grails version: $2" | |
sudo rm /usr/local/{groovy,grails} | |
sudo ln -s /usr/lib/groovy/$1 /usr/local/groovy | |
sudo ln -s /usr/lib/grails/$2 /usr/local/grails | |
echo "Done!" | |
ls -latr /usr/local/{groovy,grails} | |
} | |
function switchGroovy() { | |
echo "Switching to groovy version: $1" | |
sudo rm /usr/local/groovy | |
sudo ln -s /usr/lib/groovy/groovy-$1 /usr/local/groovy | |
echo "Done!" | |
ls -latr /usr/local/groovy | |
} | |
alias g104='switchGrails "groovy-1.5.7" "grails-1.0.4"' | |
alias g105='switchGrails "groovy-1.5.8" "grails-1.0.5"' | |
alias g11rc2='switchGrails "groovy-1.6.0" "grails-1.1-RC2"' | |
alias g11='switchGrails "groovy-1.6.0" "grails-1.1"' | |
alias g111='switchGrails "groovy-1.6.3" "grails-1.1.1"' | |
alias g112='switchGrails "groovy-1.6.3" "grails-1.1.2"' | |
#alias g12m3='switchGrails "groovy-1.6.5" "grails-1.2-M3"' | |
alias g12m4='switchGrails "groovy-1.6.5" "grails-1.2-M4"' | |
alias g12='switchGrails "groovy-1.6.7" "grails-1.2.0"' | |
alias g121='switchGrails "groovy-1.6.7" "grails-1.2.1"' | |
alias g122='switchGrails "groovy-1.6.8" "grails-1.2.2"' | |
alias g13rc2='switchGrails "groovy-1.7.2" "grails-1.3.0.RC2"' | |
alias g13='switchGrails "groovy-1.7.2" "grails-1.3.0"' | |
alias g130='switchGrails "groovy-1.7.2" "grails-1.3.0"' | |
alias g131='switchGrails "groovy-1.7.2" "grails-1.3.1"' | |
alias g132='switchGrails "groovy-1.7.3" "grails-1.3.2"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment