homebrew-core/Formula/checkbashisms.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

25 lines
973 B
Ruby

class Checkbashisms < Formula
desc "Checks for bashisms in shell scripts"
homepage "http://manpages.ubuntu.com/manpages/natty/man1/checkbashisms.1.html"
# Get upgrades at https://launchpad.net/ubuntu/+source/devscripts/
url "https://launchpad.net/ubuntu/+archive/primary/+files/devscripts_2.13.4.tar.xz"
sha256 "6575a71023d7de62986b33c2db47074fe2be96023b51e427ad653ce6a0e73527"
bottle do
cellar :any
sha1 "ba3d65481d041cc28b3f1c2a0887a1c2a08694d0" => :yosemite
sha1 "0a2f8609c179a3096683645b64410dc3388245e6" => :mavericks
sha1 "973505a805eadf37740db75a646e168b8c6545c7" => :mountain_lion
sha1 "81691ff80d98176deefb878972ae419567326d12" => :lion
end
def install
inreplace "scripts/checkbashisms.pl", "###VERSION###", "#{version}ubuntu1"
bin.install "scripts/checkbashisms.pl" => "checkbashisms"
man1.install "scripts/checkbashisms.1"
end
test do
system "#{bin}/checkbashisms --version | grep #{version}"
end
end