[rhmessaging-commits] rhmessaging commits: r2625 - mgmt/trunk/bin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Oct 13 09:18:38 EDT 2008


Author: justi9
Date: 2008-10-13 09:18:37 -0400 (Mon, 13 Oct 2008)
New Revision: 2625

Modified:
   mgmt/trunk/bin/devel-check
Log:
Make the output a little easier to read

Modified: mgmt/trunk/bin/devel-check
===================================================================
--- mgmt/trunk/bin/devel-check	2008-10-13 12:47:51 UTC (rev 2624)
+++ mgmt/trunk/bin/devel-check	2008-10-13 13:18:37 UTC (rev 2625)
@@ -6,19 +6,39 @@
     done
 }
 
-echo "#" 
-echo "# Environment"
-echo "#"
+function find_executable {
+    echo -n "Executable '$1' ->"
 
+    path=$(which "$1" 2> /dev/null)
+
+    test -z "$path" && {
+        path="[not found]"
+    }
+
+    echo " $path"
+}
+
+test "$1" = "-v" && {
+    verbose=1
+}
+
+echo "== Environment =="
+
 echo DEVEL_HOME $DEVEL_HOME
 echo CUMIN_HOME $CUMIN_HOME
-echo PYTHONPATH; print_path $PYTHONPATH
-echo PATH; print_path $PATH
 
-echo "#" 
-echo "# Python"
-echo "#"
+find_executable reschema
+find_executable mint-test
+find_executable cumin
+find_executable cumin-admin
 
+test "$verbose" && {
+    echo PYTHONPATH; print_path $PYTHONPATH
+    echo PATH; print_path $PATH
+}
+
+echo "== Python =="
+
 which python && python <<EOF
 import sys, traceback
 
@@ -32,7 +52,7 @@
         module = __import__(smodule)
         print module
     except ImportError:
-        print "** NOT FOUND **"
+        print "[not found]"
 
 try:
     import qpid
@@ -46,9 +66,7 @@
 
 EOF
 
-echo "#" 
-echo "# Database"
-echo "#"
+echo "== Database =="
 
 which psql
 




More information about the rhmessaging-commits mailing list