python-redfish/pbconf/mkctn
Bruno Cornec 9d6ec64daf Improve package build
- Packages can now be built with Docker containers and project-builder.org for
  Mageia 5, Fedora 25, OpenSUSE 42.2 & CentOS 7
- Fix a bug in conf file path management in setup.py
- A script pbconf/mkctn is also availble to ease package building
- Status is documented in pbconf/README.rst
- Update install script to have a variable for doc installation path which is
  different between Mageia/Fedora and OpenSUSE

Change-Id: Id34e885c5cba7b650adf1638147ffb089ad3c7c3
2017-02-21 00:53:08 +01:00

22 lines
591 B
Bash
Executable File

#!/bin/bash
#
# Script to rebuild all packages for supported distros in containers using
# project-builder.org
#
PRJ=python-redfish
PKG=`pbgetparam -p $PRJ velist | sed 's/,/ /'`
if [ _"$1" != _"" ]; then
PKG=$*
fi
for i in $PKG; do
DISTRO=`echo $i | cut -d- -f1`
DISTROVER=`echo $i | cut -d- -f2`
M=$DISTRO-$DISTROVER-x86_64
pb -p pb -T docker -m $M --stop-on-error newve -i ${DISTRO}:$DISTROVER
pb -p pb -T docker -m $M --stop-on-error setupve
pb -p $PRJ -T docker -m $M --stop-on-error sbx2prepve
pb -p $PRJ -T docker -m $M --stop-on-error build2ve
done