mirror of
https://github.com/samba-team/samba.git
synced 2025-02-09 09:57:48 +03:00
ctdb/wscript: pass dep_vars=['VERSION'] to SAMBA_GENERATOR()
This avoid the use of always=True. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
a41a9ad074
commit
bab349c2a1
19
ctdb/wscript
19
ctdb/wscript
@ -171,10 +171,11 @@ def build(bld):
|
|||||||
bld.RECURSE('lib/tdb')
|
bld.RECURSE('lib/tdb')
|
||||||
bld.RECURSE('lib/socket_wrapper')
|
bld.RECURSE('lib/socket_wrapper')
|
||||||
|
|
||||||
bld.SAMBA_GENERATOR('ctdb-version-header',
|
t = bld.SAMBA_GENERATOR('ctdb-version-header',
|
||||||
target='include/ctdb_version.h',
|
target='include/ctdb_version.h',
|
||||||
rule='../packaging/mkversion.sh ${TGT} %s' % (VERSION),
|
rule='../packaging/mkversion.sh ${TGT} %s' % (VERSION),
|
||||||
always=True)
|
dep_vars=['VERSION'])
|
||||||
|
t.env.VERSION = VERSION
|
||||||
|
|
||||||
bld.SAMBA_SUBSYSTEM('ctdb-util',
|
bld.SAMBA_SUBSYSTEM('ctdb-util',
|
||||||
source=bld.SUBDIR('lib/util',
|
source=bld.SUBDIR('lib/util',
|
||||||
@ -414,10 +415,12 @@ def build(bld):
|
|||||||
bld.install_dir(bld.env.CTDB_VARDIR)
|
bld.install_dir(bld.env.CTDB_VARDIR)
|
||||||
|
|
||||||
sed_expr = 's/@PACKAGE_VERSION@/%s/g' % VERSION
|
sed_expr = 's/@PACKAGE_VERSION@/%s/g' % VERSION
|
||||||
bld.SAMBA_GENERATOR('ctdb-pc',
|
t = bld.SAMBA_GENERATOR('ctdb-pc',
|
||||||
source='ctdb.pc.in',
|
source='ctdb.pc.in',
|
||||||
target='ctdb.pc',
|
target='ctdb.pc',
|
||||||
rule='sed -e "%s" ${SRC} > ${TGT}' % sed_expr)
|
rule='sed -e "%s" ${SRC} > ${TGT}' % sed_expr,
|
||||||
|
dep_vars=['VERSION'])
|
||||||
|
t.env.VERSION = VERSION
|
||||||
bld.INSTALL_FILES('${LIBDIR}/pkgconfig', 'ctdb.pc')
|
bld.INSTALL_FILES('${LIBDIR}/pkgconfig', 'ctdb.pc')
|
||||||
|
|
||||||
# Test binaries
|
# Test binaries
|
||||||
|
Loading…
x
Reference in New Issue
Block a user