mavenshell: use install_symlink

This commit is contained in:
Adam Vandenberg 2012-02-12 14:40:52 -08:00
parent 6860c2ff9a
commit 32215410da

View file

@ -1,8 +1,8 @@
require 'formula'
class MavenShell < Formula
url 'http://repo1.maven.org/maven2/org/sonatype/maven/shell/dist/mvnsh-assembly/1.0.1/mvnsh-assembly-1.0.1-bin.tar.gz'
homepage 'http://shell.sonatype.org/'
url 'http://repo1.maven.org/maven2/org/sonatype/maven/shell/dist/mvnsh-assembly/1.0.1/mvnsh-assembly-1.0.1-bin.tar.gz'
md5 '5b0f47c8838aa7525f454f2bca9dbed9'
def install
@ -12,9 +12,6 @@ class MavenShell < Formula
# Install jars in libexec to avoid conflicts.
prefix.install %w{ NOTICE.txt LICENSE.txt README.txt }
libexec.install Dir['*']
# Symlink the boot script.
bin.mkpath
ln_s "#{libexec}/bin/mvnsh", bin+"mvnsh"
bin.install_symlink "#{libexec}/bin/mvnsh"
end
end