]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
build-doc: package checks for fedora
authorJohn Spray <john.spray@redhat.com>
Wed, 11 Feb 2015 13:18:53 +0000 (13:18 +0000)
committerJohn Spray <john.spray@redhat.com>
Wed, 11 Feb 2015 13:24:13 +0000 (13:24 +0000)
Signed-off-by: John Spray <john.spray@redhat.com>
admin/build-doc

index a88ac631ebb18127a93fc1a943b77da2900d848f..dfbd5e45f0f6603787e5c80bea45047e779d5051 100755 (executable)
@@ -20,6 +20,17 @@ if command -v dpkg >/dev/null; then
        echo "sudo apt-get install $missing"
        exit 1
     fi
+elif command -v yum >/dev/null; then
+    for package in python-devel python-pip python-virtualenv doxygen ditaa ant libxml-devel libxslt-devel; do
+       if ! rpm -q $package >/dev/null ; then
+               missing="${missing:+$missing }$package"
+       fi
+    done
+    if [ -n "$missing" ]; then
+        echo "$0: missing required packages, please install them:" 1>&2
+        echo "yum install $missing"
+        exit 1
+    fi
 else
     for command in virtualenv doxygen ant ditaa; do
        command -v "$command" > /dev/null;