Skip to content

Commit

Permalink
Merge pull request #13292 from tchaikov/wip-script-sepia-bt-support-x…
Browse files Browse the repository at this point in the history
…enial

script/sepia_bt.sh: support xenial

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
  • Loading branch information
tchaikov committed Feb 11, 2017
2 parents d4db8e0 + f630600 commit 54354e5
Showing 1 changed file with 32 additions and 9 deletions.
41 changes: 32 additions & 9 deletions src/script/sepia_bt.sh
Expand Up @@ -27,17 +27,19 @@ if [ -z $run ] || [ -z $core_path ] || [ -z $release ] || [ -z $distro ] || [ -z
usage
fi

prog=`file $core_path | grep -oP "from '\K[^ ]+"`
prog=`file $core_path | grep -oP "from '\K[^']+"`
case $prog in
ceph_test_*)
pkg=ceph-test
pkgs="ceph-test librados2"
;;
ceph-osd|ceph-mon)
pkg=$prog
pkgs=$prog
;;
*/python*)
pkg=librados2
pkgs=librados2
;;
rados)
pkgs="ceph-common librados2 libradosstriper1"
*)
die "unknown prog: $prog"
;;
Expand All @@ -47,17 +49,38 @@ flavor=default
arch=x86_64

case $distro in
ubuntu)
xenial)
codename=$distro
distro=ubuntu
distro_ver=16.04
;;
trusty)
codename=$distro
distro=ubuntu
distro_ver=14.04
pkg_path=pool/main/c/ceph/%s_%s-1trusty_amd64.deb
pkgs="$pkg $pkg-dbg"
;;
centos)
centos7)
distro=centos
distro_ver=7
;;
*)
die "unknown distro: $distro"
;;
esac

case $distro in
ubuntu)
pkg_path=pool/main/c/ceph/%s_%s-1${codename}_amd64.deb
for p in $pkgs; do
t="$t $p $p-dbg"
done
pkgs="$t"
;;
centos)
pkg_path=${arch}/%s-%s.x86_64.rpm
# 11.0.2-1022-g5b25cd3 => 11.0.2-1022.g5b25cd3
release=$(echo $release | sed s/-/./2)
pkgs="$pkg ceph-debuginfo"
pkgs="$pkgs ceph-debuginfo"
;;
*)
die "unknown distro: $distro"
Expand Down

0 comments on commit 54354e5

Please sign in to comment.