mirror of
https://opendev.org/x/pyghmi
synced 2025-01-12 18:58:34 +00:00
40c546400e
There are some build environments we are being asked to support that pbr does not. A quick fallback to handle such environments. Change-Id: Ie5dac2555c73e80e4cf589932a18f31a530bdf65
15 lines
369 B
Bash
Executable File
15 lines
369 B
Bash
Executable File
#!/bin/bash
|
|
cd `dirname $0`
|
|
# If not PBR, use the setup.py.tmpl
|
|
python -c 'import pbr' || ./makesetup
|
|
VERSION=`python setup.py --version`
|
|
python setup.py sdist
|
|
py2dsc dist/pyghmi-$VERSION.tar.gz
|
|
shopt -s extglob
|
|
cd deb_dist/!(*.orig)/
|
|
dpkg-buildpackage -rfakeroot -uc -us -i
|
|
cd -
|
|
rm -rf $(find deb_dist -mindepth 1 -maxdepth 1 -type d)
|
|
rm $1/*pyghmi*
|
|
cp deb_dist/* $1/
|