aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/checkbashisms.rb
diff options
context:
space:
mode:
authorMislav Marohnić2013-07-15 21:34:21 +0200
committerAdam Vandenberg2013-07-16 20:46:36 -0700
commitb398e272b377517de8edaa86aa5a3cbb591442b4 (patch)
tree7cb232c0518f17e00815e4868d5dafbfb2ea55d2 /Library/Formula/checkbashisms.rb
parent75fd3ba4579b9b1fcee59ab5fbcc68ab1a59afe3 (diff)
downloadhomebrew-b398e272b377517de8edaa86aa5a3cbb591442b4.tar.bz2
checkbashisms 2.13.0
A lightweight Perl script for checking for "bashims" in POSIX shell scripts. Closes #21232. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/checkbashisms.rb')
-rw-r--r--Library/Formula/checkbashisms.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/checkbashisms.rb b/Library/Formula/checkbashisms.rb
new file mode 100644
index 000000000..28097c536
--- /dev/null
+++ b/Library/Formula/checkbashisms.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+class Checkbashisms < Formula
+ homepage 'http://manpages.ubuntu.com/manpages/natty/man1/checkbashisms.1.html'
+ url 'https://launchpad.net/ubuntu/+archive/primary/+files/devscripts_2.13.0ubuntu1.tar.xz'
+ version '2.13.0'
+ sha1 'be8b7e2fb596ea8ba098111ced04a7cd0abfb4d1'
+
+ depends_on 'xz' => :build
+
+ def install
+ inreplace 'scripts/checkbashisms.pl', '###VERSION###', "#{version}ubuntu1"
+ bin.install 'scripts/checkbashisms.pl' => 'checkbashisms'
+ end
+
+ test do
+ system "#{bin}/checkbashisms --version | grep #{version}"
+ end
+end