You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/07/05 11:52:48 UTC

[whimsy] branch master updated: Check for additional required tools

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 10f89f1  Check for additional required tools
10f89f1 is described below

commit 10f89f1b7aca411c864a5e215b551dba38e02042
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jul 5 12:52:31 2020 +0100

    Check for additional required tools
---
 tools/pubsub.rb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tools/pubsub.rb b/tools/pubsub.rb
index d983583..6d4924f 100644
--- a/tools/pubsub.rb
+++ b/tools/pubsub.rb
@@ -70,11 +70,20 @@ end
 
 optionparser.parse!
 
+# Check for required tools
+
 if options.puppet and `which puppet 2>/dev/null`.empty?
   STDERR.puts 'puppet not found in path; exiting'
   exit 1
 end
 
+%w(git rake).each do |tool|
+  if `which #{tool} 2>/dev/null`.empty?
+    STDERR.puts "#{tool} not found in path; exiting"
+    exit 1
+  end
+end
+
 #
 ### process management
 #