This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
set -v |
| 5 |
|
| 6 |
test -n "$1" && RESULTS=$1 || RESULTS=results.log |
| 7 |
|
| 8 |
ant clean || : |
| 9 |
|
| 10 |
ant build docs |
| 11 |
|
| 12 |
ant test 2>&1 | tee $RESULTS |
| 13 |
|
| 14 |
rm -f *.tar.gz |
| 15 |
ant src |
| 16 |
|
| 17 |
if [ -n "$AUTOBUILD_COUNTER" ]; then |
| 18 |
EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER" |
| 19 |
else |
| 20 |
NOW=`date +"%s"` |
| 21 |
EXTRA_RELEASE=".$USER$NOW" |
| 22 |
fi |
| 23 |
|
| 24 |
if [ -x /usr/bin/rpmbuild ] |
| 25 |
then |
| 26 |
ant spec |
| 27 |
rpmbuild --nodeps \ |
| 28 |
--define "extra_release $EXTRA_RELEASE" \ |
| 29 |
--define "_sourcedir `pwd`/target" \ |
| 30 |
-ba --clean target/libvirt-java.spec |
| 31 |
fi |