homebrew-core/Formula/chcase.rb

30 lines
582 B
Ruby
Raw Normal View History

2015-03-03 11:44:05 +00:00
class Chcase < Formula
desc "Perl file-renaming script"
2015-03-03 11:44:05 +00:00
homepage "http://www.primaledge.ca/chcase.html"
url "http://www.primaledge.ca/chcase"
version "2.0"
sha1 "ec81ad76d85cf9162d422e801092ddc5e0841e39"
2013-06-02 19:23:47 +00:00
# add a shebang so that brew properly sets it executable
2014-03-18 17:13:30 +00:00
patch :DATA
2015-03-03 11:44:05 +00:00
def install
bin.install "chcase"
end
test do
system bin/"chcase", "-e"
end
end
__END__
diff --git a/chcase b/chcase
index 689fc79..93efae8
--- a/chcase
+++ b/chcase
@@ -1,3 +1,4 @@
+#!/bin/sh -- # -*- perl -*-
eval 'exec perl $0 ${1+"$@"}'
if 0;
# don't modify below here