2015-09-16 21:45:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
|
|
|
#
|
|
|
|
# Author: Loic Dachary <loic@dachary.org>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Library Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Library Public License for more details.
|
|
|
|
#
|
|
|
|
function install_deps() {
|
|
|
|
git archive --remote=git://git.ceph.com/ceph.git master install-deps.sh | tar -xvf -
|
|
|
|
bash -x install-deps.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
function get_ceph() {
|
2015-09-25 11:52:05 +00:00
|
|
|
local git_ceph_url=$1
|
2015-09-16 21:45:38 +00:00
|
|
|
local sha1=$2
|
|
|
|
|
2015-09-25 11:52:05 +00:00
|
|
|
test -d ceph || git clone ${git_ceph_url}
|
2015-09-16 21:45:38 +00:00
|
|
|
cd ceph
|
|
|
|
git checkout ${sha1}
|
|
|
|
}
|