homebrew-core/Formula/rename.rb
Peter Aronoff be3c716b2c A Perl-based renaming script - better than mv
This is simply a (slightly) packaged up version of Aristotle Pagaltzis rename
script (which is in turn based on the Debian rename script by Larry Wall and
others).

rename provides for more powerful renaming via Perl's support for regular
expressions. This version also provides some handy built-in utility functions.
For example, you can quickly upcase or downcase file names, as well as removing
unsafe/non-standard characters from filenames.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-07-05 16:59:55 -07:00

18 lines
382 B
Ruby

require 'formula'
class Rename <Formula
url 'http://plasmasturm.org/code/rename/rename'
version '0.1.3'
homepage 'http://plasmasturm.org/code/rename'
md5 'ce931227630a44d5d4ca4234a1fb8e63'
def download_strategy
NoUnzipCurlDownloadStrategy
end
def install
system 'pod2man', 'rename', 'rename.1'
bin.install 'rename'
man1.install 'rename.1'
end
end