fuel-plugin-manila/pre_build_hook
2016-07-07 12:09:28 +03:00

22 lines
651 B
Bash
Executable File

#!/bin/bash
# update submodules for core puppet manifests
git submodule update --remote deployment_scripts/puppet/modules/manila
# build the deb for manila project
curdir=$(pwd)
tmpdir=$(mktemp -d); cd $tmpdir
git clone --depth 1 -b stable/mitaka https://github.com/openstack/manila.git
fpm -s python -t deb manila/setup.py
git clone --depth 1 -b stable/mitaka https://github.com/openstack/python-manilaclient.git
fpm -s python -t deb python-manilaclient/setup.py
git clone --depth 1 -b stable/mitaka https://github.com/openstack/manila-ui.git
fpm -s python -t deb manila-ui/setup.py
cp *.deb $curdir/repositories/ubuntu
cd .. ; rm -rf $tmpdir