grails: don't use #{name} in caveats

This commit is contained in:
Adam Vandenberg 2012-02-12 13:57:05 -08:00
parent 0000bf9275
commit 047f872e4a

View file

@ -1,8 +1,8 @@
require 'formula'
class Grails < Formula
url 'http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.0.0.zip'
homepage 'http://grails.org'
url 'http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.0.0.zip'
md5 '9d18e2b3bbb4ed249ff1fad1f4b11311'
def install
@ -16,33 +16,28 @@ class Grails < Formula
end
end
def caveats
<<-EOS.undent
IMPORTANT!
Notes On Upgrading #{name.capitalize} From Versions < 1.3.7
def caveats; <<-EOS.undent
Important Note On Upgrading Grails From Versions < 1.3.7
The directory layout has been changed slightly for versions >= 1.3.7
in order to conform with Homebrew conventions for installation of Java
jar files. Please note the following:
Before upgrading -
Before upgrading:
run 'brew unlink grails' (keeps old version in cellar)
or
run 'brew rm grails' (deletes old version from cellar)
run 'brew unlink #{name}' (keeps old version in cellar)
OR
run 'brew rm #{name}' (deletes old version from cellar)
THEN
and then:
run 'brew prune'
This is to ensure that #{HOMEBREW_PREFIX} is cleaned of references to the
This is to ensure that HOMEBREW_PREFIX is cleaned of references to the
old version.
The #{name.capitalize} home directory for versions < 1.3.7 was in the form:
#{HOMEBREW_CELLAR}/#{name}/1.3.6
For versions >= 1.3.7, the #{name.capitalize} home directory is in the form:
The Grails home directory for versions < 1.3.7 was in the form:
#{HOMEBREW_CELLAR}/grails/1.3.6
For versions >= 1.3.7, the Grails home directory is in the form:
#{libexec}
If you set the GRAILS_HOME variable explicitly in your shell environment,