checkbashisms 2.13.0

A lightweight Perl script for checking for "bashims" in POSIX shell scripts.

Closes Homebrew/homebrew#21232.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Mislav Marohnić 2013-07-15 21:34:21 +02:00 committed by Adam Vandenberg
parent ec12ff2e25
commit c8d56b7b49
1 changed files with 19 additions and 0 deletions

19
Formula/checkbashisms.rb Normal file
View File

@ -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