Skip to content

Instantly share code, notes, and snippets.

@wynst
Created December 31, 2008 07:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wynst/41921 to your computer and use it in GitHub Desktop.
Save wynst/41921 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
Dir["*"].each do |file|
if File.directory?(file)
#tODO add OS spesific,
# if win use 7z instead.
`zip -r "#{file}.zip" "#{file}"`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment