diff options
| author | Martin Kühl | 2010-09-12 22:55:52 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-19 11:11:56 -0700 |
| commit | ba010f10f578c6e096e4124dc144ccb816f07d89 (patch) | |
| tree | 765f6cfbdc28eebd65e24c67dd95bd101b488f05 | |
| parent | fab151ca9a63e97f896e0299a7e778420f1075ea (diff) | |
| download | homebrew-ba010f10f578c6e096e4124dc144ccb816f07d89.tar.bz2 | |
Let the `gzip` utility function accept multiple paths.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Homebrew/utils.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 0c2e4de8b..4d426a9bf 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -165,9 +165,11 @@ def exec_editor *args end # GZips the given path, and returns the gzipped file -def gzip path - system "/usr/bin/gzip", path - return Pathname.new(path+".gz") +def gzip *paths + paths.collect do |path| + system "/usr/bin/gzip", path + Pathname.new(path+".gz") + end end module ArchitectureListExtension |
