[kernel-tests] 28/73: Add utility to check for and install build dependencies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <jwboyer@xxxxxxxxxx>
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
kernel@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux