summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-06-10 16:30:38 +1000
committerMichael Adam <obnox@samba.org>2014-06-20 23:38:10 +0200
commita39a5f4c06e3749c745c87c7d735baf0b8598836 (patch)
tree0be3a5c025a7760203f9bc8b1ee391be38870e97 /ctdb
parent6e078c90a8660b555d6874ab5d5e60040f892ab7 (diff)
downloadsamba-a39a5f4c06e3749c745c87c7d735baf0b8598836.tar.gz
ctdb-build: Add target to build RPMs
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/Makefile3
-rwxr-xr-xctdb/wscript9
2 files changed, 12 insertions, 0 deletions
diff --git a/ctdb/Makefile b/ctdb/Makefile
index 44fd756a2c1..c2ee2ddb96b 100644
--- a/ctdb/Makefile
+++ b/ctdb/Makefile
@@ -31,6 +31,9 @@ distcheck:
touch .tmplock
WAFLOCK=.tmplock $(WAF) distcheck
+rpm:
+ $(WAF) rpm
+
clean:
$(WAF) clean
diff --git a/ctdb/wscript b/ctdb/wscript
index 4920f9e4385..26730981a37 100755
--- a/ctdb/wscript
+++ b/ctdb/wscript
@@ -556,6 +556,15 @@ def dist():
samba_dist.dist()
+def rpmonly(ctx):
+ cmd = 'rpmbuild -ta --clean --rmsource ctdb-%s.tar.gz' % VERSION
+ samba_utils.RUN_COMMAND(cmd)
+
+def rpm(ctx):
+ import Scripting
+ Scripting.commands.append('dist')
+ Scripting.commands.append('rpmonly')
+
def ctags(ctx):
"build 'tags' file using ctags"
import Utils