virt-manager/autobuild.sh

36 lines
656 B
Bash
Raw Normal View History

2006-03-29 15:40:14 +04:00
#!/bin/sh
set -e
2010-11-30 18:29:42 +03:00
if [ -z "$AUTOBUILD_INSTALL_ROOT" ] ; then
echo "This script is only meant to be used with an autobuild server."
echo "Please see INSTALL for build instructions."
exit 1
fi
2006-03-29 15:40:14 +04:00
# Make things clean.
make -k distclean ||:
rm -rf MANIFEST blib
# Make makefiles.
./autogen.sh --prefix=$AUTOBUILD_INSTALL_ROOT
2006-03-29 15:40:14 +04:00
cd build
make
make install
rm -f *.tar.gz
make dist
if [ -f /usr/bin/rpmbuild ]; then
if [ -n "$AUTOBUILD_COUNTER" ]; then
EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
else
NOW=`date +"%s"`
EXTRA_RELEASE=".$USER$NOW"
fi
2006-06-17 01:09:28 +04:00
rpmbuild --nodeps --define "extra_release $EXTRA_RELEASE" -ta --clean *.tar.gz
2006-03-29 15:40:14 +04:00
fi