forked from lstoll/libvirt-java
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautobuild.sh
More file actions
Latest commit
executable file
·31 lines (23 loc) · 499 Bytes
/
Copy pathautobuild.sh
File metadata and controls
executable file
·31 lines (23 loc) · 499 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
set -e
set -v
test -n "$1"&& RESULTS=$1|| RESULTS=results.log
ant clean ||:
ant build docs
ant test2>&1| tee $RESULTS
rm -f *.tar.gz
ant src
if [ -n"$AUTOBUILD_COUNTER" ];then
EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
else
NOW=`date +"%s"`
EXTRA_RELEASE=".$USER$NOW"
fi
if [ -x /usr/bin/rpmbuild ]
then
ant spec
rpmbuild --nodeps \
--define "extra_release $EXTRA_RELEASE" \
--define "_sourcedir `pwd`/target" \
-ba --clean target/libvirt-java.spec
fi