diff options
author | Michael Adam <obnox@samba.org> | 2011-05-18 10:35:42 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-05-18 23:10:59 +0200 |
commit | 0b0abc1723063b1360557cbd42198708720fa0a4 (patch) | |
tree | f99c065449089dc36e6096348cd53434e1266526 /packaging | |
parent | c07cccd98355102d9747004ec44e029937644b91 (diff) | |
download | samba-0b0abc1723063b1360557cbd42198708720fa0a4.tar.gz samba-0b0abc1723063b1360557cbd42198708720fa0a4.tar.bz2 samba-0b0abc1723063b1360557cbd42198708720fa0a4.zip |
packaging(RHEL-CTDB): honour rpm build target options handed in to makerpms.sh
This allows to call e.g. "makerpms.sh -bs" to only build the source rpm.
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed May 18 23:10:59 CEST 2011 on sn-devel-104
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/RHEL-CTDB/makerpms.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packaging/RHEL-CTDB/makerpms.sh b/packaging/RHEL-CTDB/makerpms.sh index 0eed6aa9be..d23d14ed8a 100755 --- a/packaging/RHEL-CTDB/makerpms.sh +++ b/packaging/RHEL-CTDB/makerpms.sh @@ -139,8 +139,17 @@ fi ## echo "$(basename $0): Getting Ready to build release package" +case ${EXTRA_OPTIONS} in + *-b*) + BUILD_TARGET="" + ;; + *) + BUILD_TARGET="-ba" + ;; +esac + pushd ${RPMSPECDIR} -${RPM} -ba $EXTRA_OPTIONS $SPECFILE +${RPM} ${BUILD_TARGET} ${EXTRA_OPTIONS} ${SPECFILE} popd echo "$(basename $0): Done." |