This is an automated email from the git hooks/post-receive script.

jforbes pushed a commit to branch master
in repository kernel-tests.

commit aaebe9c671c347b7ecce034d41477b1da690146c
Author: Josh Boyer <[email protected]>
Date:   Tue May 28 16:47:32 2013 -0400

    Add utility to check for and install build dependencies
---
 utils/build-deps.sh | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/utils/build-deps.sh b/utils/build-deps.sh
new file mode 100644
index 0000000..915d94d
--- /dev/null
+++ b/utils/build-deps.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+install_dep() {
+       yum install $1;
+       rc=$?;
+       if [ $rc -ne 0 ]
+       then
+               echo "Could not install $1"
+               return 3
+       fi
+       return 0
+}
+
+check_dep() {
+       rpm -q $1
+       rc=$?
+       if [ $rc -ne 0 ]
+       then
+               echo "Could not find $1.  Attempting to install"
+               return install_dep $1
+       fi
+       return 0
+}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
kernel mailing list
[email protected]
https://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to