summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-01-12 11:27:56 +0000
committerDaniel P. Berrange <berrange@redhat.com>2015-01-12 11:27:56 +0000
commit625677c589042001fc4cd229c8b98e380515eb2c (patch)
tree5bf12e3d9822e9d7391d7f06f7e4ce572c64f258
parent675e47f0b4942f699d519b7e14d08d1992f83db6 (diff)
Tweak autobuild.sh to facilitate release builds
-rwxr-xr-xautobuild.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/autobuild.sh b/autobuild.sh
index 5effb5b..164bdaf 100755
--- a/autobuild.sh
+++ b/autobuild.sh
@@ -51,13 +51,18 @@ test "$st" = 0
rm -f *.tar.gz
make dist
-if [ -n "$AUTOBUILD_COUNTER" ]; then
- EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
+if [ -z "$RELEASE_BUILD" ]; then
+ if [ -n "$AUTOBUILD_COUNTER" ]; then
+ EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
+ else
+ NOW=`date +"%s"`
+ EXTRA_RELEASE=".$USER$NOW"
+ fi
else
- NOW=`date +"%s"`
- EXTRA_RELEASE=".$USER$NOW"
+ EXTRA_RELEASE=""
fi
+
if [ -f /usr/bin/rpmbuild ]; then
rpmbuild $nodeps \
--define "extra_release $EXTRA_RELEASE" \