mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix ack formula
This commit is contained in:
parent
8433ff0faa
commit
5eb9d6519d
@ -244,7 +244,6 @@ public
|
|||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
FileUtils.rm_rf tmp if tmp
|
FileUtils.rm_rf tmp if tmp
|
||||||
FileUtils.rm tgz if tgz and not self.cache?
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -292,9 +291,6 @@ public
|
|||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
def cache?
|
|
||||||
true
|
|
||||||
end
|
|
||||||
def uncompress path
|
def uncompress path
|
||||||
path.dirname
|
path.dirname
|
||||||
end
|
end
|
||||||
@ -368,12 +364,8 @@ end
|
|||||||
|
|
||||||
# see ack.rb for an example usage
|
# see ack.rb for an example usage
|
||||||
class ScriptFileFormula <AbstractFormula
|
class ScriptFileFormula <AbstractFormula
|
||||||
def cache?
|
|
||||||
false
|
|
||||||
end
|
|
||||||
def install
|
def install
|
||||||
FileUtils.cp name, bin
|
bin.install name
|
||||||
(bin+name).chmod 0544
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user