aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-09-02 15:19:39 +0100
committerMike McQuaid2014-09-02 15:19:58 +0100
commit34cb27638824e93b09c820d2556214eb01d79705 (patch)
treeb385ddf9907937ae87d38236d23306121b8d8afb /Library/Formula
parente92d7f5b9cea29501d489f9c9da9acd278979ff6 (diff)
downloadhomebrew-34cb27638824e93b09c820d2556214eb01d79705.tar.bz2
makeself: general cleanup.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/makeself.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Formula/makeself.rb b/Library/Formula/makeself.rb
index aa8c38d4e..074614ce4 100644
--- a/Library/Formula/makeself.rb
+++ b/Library/Formula/makeself.rb
@@ -4,15 +4,12 @@ class Makeself < Formula
homepage "http://www.megastep.org/makeself/"
url "https://github.com/megastep/makeself/archive/release-2.2.0.tar.gz"
sha1 "e512745f7aa5becea4f4f85a8dc0aa6fd6ca38aa"
-
- head 'https://github.com/megastep/makeself.git', :branch => 'master'
+ head "https://github.com/megastep/makeself.git", :branch => "master"
def install
libexec.install "makeself-header.sh"
- # moved makeself-header.sh to libexec so change its location in makeself.sh
- inreplace "makeself.sh" do |f|
- f.gsub! '`dirname "$0"`', "#{libexec}"
- end
+ # install makeself-header.sh to libexec so change its location in makeself.sh
+ inreplace "makeself.sh", '`dirname "$0"`', libexec
bin.install "makeself.sh" => "makeself"
man1.install "makeself.1"
end
@@ -20,6 +17,6 @@ class Makeself < Formula
test do
touch "testfile"
system "tar", "cvzf", "testfile.tar.gz", "testfile"
- system "makeself", ".", "testfile.run", "\"A test file\"", "echo"
+ system "makeself", ".", "testfile.run", '"A test file"', "echo"
end
end