diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-06-17 15:21:39 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-06-17 08:37:06 +0200 |
commit | d2bc45e7ffb4e8d47878a6fc53c5f5c90dfd2114 (patch) | |
tree | 49dc2098f4f4d1a5e51414465a21cc2aee6eae0e /wscript_build | |
parent | 0b3b7e3797a9aa0dc8f0922c8cd873b0f0b3231e (diff) | |
download | samba-d2bc45e7ffb4e8d47878a6fc53c5f5c90dfd2114.tar.gz samba-d2bc45e7ffb4e8d47878a6fc53c5f5c90dfd2114.tar.bz2 samba-d2bc45e7ffb4e8d47878a6fc53c5f5c90dfd2114.zip |
build: only use the git version on install, not in the build tree
having the git version in our version.h in the build tree is annoying
for developers, as every time you commit or rebase you need to spend
several minutes re-linking. This changes it to use the git version
only on install, which is much more useful as when you actually
install the binaries you may be using them in a way that reporting the
version is useful
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Jun 17 08:37:06 CEST 2011 on sn-devel-104
Diffstat (limited to 'wscript_build')
-rw-r--r-- | wscript_build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript_build b/wscript_build index 43e69a5904..2043757746 100644 --- a/wscript_build +++ b/wscript_build @@ -27,7 +27,7 @@ bld.env.public_headers_skip = ['param/param_proto.h', 'lib/ldb_compat.h'] # force headers to use SAMBA4 rules bld.env.public_headers_replace = { '#if _SAMBA_BUILD_ == 4' : '#if 1 /* _SAMBA_BUILD_ == 4 */' } -samba_version.load_version(bld.env) +samba_version.load_version(bld.env, is_install=bld.is_install) bld.SAMBA_MKVERSION('version.h') # bld.ENABLE_MAGIC_ORDERING() |