Skip to content

Commit

Permalink
gnu-sed: remove unnecessary function declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Jan 16, 2011
1 parent 0eef42c commit bbf04fd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Library/Formula/gnu-sed.rb
@@ -1,9 +1,5 @@
require 'formula'

def use_default_names?
ARGV.include? '--default-names'
end

class GnuSed <Formula
url 'http://ftp.gnu.org/gnu/sed/sed-4.2.1.tar.bz2'
homepage 'http://www.gnu.org/software/sed/'
Expand All @@ -15,7 +11,7 @@ def options

def install
args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
args << "--program-prefix=g" unless use_default_names?
args << "--program-prefix=g" unless ARGV.include? '--default-names'

system "./configure", *args
system "make install"
Expand Down

0 comments on commit bbf04fd

Please sign in to comment.