diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-09-09 12:43:51 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2013-11-12 18:02:07 +0000 |
commit | a7d9e8ccd01fb26f5c43847384d81b692bd040a8 (patch) | |
tree | 092bf73b58181746a09f06b44eaf607a8f5c1c41 /autobuild.sh | |
parent | 5ad2399b5dcdb6767c9ae839b996d2f607f12da7 (diff) | |
download | libvirt-python-v6-master.tar.gz libvirt-python-v6-master.tar.xz libvirt-python-v6-master.zip |
Create a setup.py for building libvirt python code and add
supporting files
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'autobuild.sh')
-rwxr-xr-x | autobuild.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/autobuild.sh b/autobuild.sh new file mode 100755 index 0000000..35fa4fc --- /dev/null +++ b/autobuild.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +set -v +set -e + +: ${AUTOBUILD_INSTALL_ROOT=$HOME/builder} + +rm -rf MANIFEST dist build + + +python setup.py sdist + +python setup.py build +python setup.py test +python setup.py install --root=$AUTOBUILD_INSTALL_ROOT + +which /usr/bin/rpmbuild > /dev/null 2>&1 || exit 0 + +if [ -n "$AUTOBUILD_COUNTER" ]; then + EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER" +else + NOW=`date +"%s"` + EXTRA_RELEASE=".$USER$NOW" +fi +rpmbuild --nodeps --define "extra_release $EXTRA_RELEASE" -ta --clean dist/*.tar.gz |