mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 21:49:49 -05:00
Add gzip utility function.
This commit is contained in:
1 parent
c37845e952
commit
ef69db2e3d
1 file changed
+6
@@ -150,6 +150,12 @@ def exec_editor *args
|
||||
exec *(editor.split+args)
|
||||
end
|
||||
|
||||
# GZips the given path, and returns the gzipped file
|
||||
def gzip path
|
||||
system "/usr/bin/gzip", path
|
||||
return Pathname.new(path+".gz")
|
||||
end
|
||||
|
||||
# returns array of architectures suitable for -arch gcc flag
|
||||
def archs_for_command cmd
|
||||
cmd = `/usr/bin/which #{cmd}` unless Pathname.new(cmd).absolute?
|
||||
|
||||
Reference in new issue
Block a user