From 93ac88a708eb7bcbddcb46e5dee150c653f309e5 Mon Sep 17 00:00:00 2001 From: Fred McCann Date: Thu, 11 Feb 2016 09:40:05 -0500 Subject: [PATCH] bzr-xmloutput 0.8.8 (new formula) Closes Homebrew/homebrew#49075. Signed-off-by: Dominyk Tiller --- Formula/bzr-xmloutput.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/bzr-xmloutput.rb diff --git a/Formula/bzr-xmloutput.rb b/Formula/bzr-xmloutput.rb new file mode 100644 index 00000000000..273439033bb --- /dev/null +++ b/Formula/bzr-xmloutput.rb @@ -0,0 +1,28 @@ +class BzrXmloutput < Formula + desc "Bazaar plugin that provides a option to generate XML output" + homepage "https://launchpad.net/bzr-xmloutput" + url "https://launchpad.net/bzr-xmloutput/trunk/0.8.8/+download/bzr-xmloutput-0.8.8.tar.gz" + sha256 "73b9b2f6ce4d9910031df7fd153d56d14f833c20a106f099bee5a33463f73b36" + + bottle :unneeded + + depends_on "bazaar" + + def install + (share/"bazaar/plugins/xmloutput").install Dir["*"] + end + + test do + system "bzr", "whoami", "Homebrew" + system "bzr", "init-repo", "sample" + system "bzr", "init", "sample/trunk" + touch testpath/"sample/trunk/test.txt" + + cd "sample/trunk" do + msg = "my commit" + system "bzr", "add", "test.txt" + system "bzr", "commit", "-m", msg + assert_match /.*#{msg}/, shell_output("bzr log --xml") + end + end +end