aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorPeter Aronoff2010-06-22 09:31:19 -0400
committerAdam Vandenberg2010-07-05 16:59:55 -0700
commit3ba4e79d41c7c8f98cacc85b312b34931bbb1b74 (patch)
treeb381cb73d92d0d3247dcc8cbf0e1806c3580f0f0 /Library
parent1787ca960d478f82d3cb654ddbe119f1e63dfe18 (diff)
downloadhomebrew-3ba4e79d41c7c8f98cacc85b312b34931bbb1b74.tar.bz2
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>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rename.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/rename.rb b/Library/Formula/rename.rb
new file mode 100644
index 000000000..98d2fa82f
--- /dev/null
+++ b/Library/Formula/rename.rb
@@ -0,0 +1,18 @@
+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