1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

buildtools: Remove semicolons

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-29 20:47:58 +12:00 committed by Andrew Bartlett
parent afb335664c
commit 2870ef951e
5 changed files with 9 additions and 9 deletions

View File

@ -225,7 +225,7 @@ def abi_write_vscript(f, libname, current_version, versions, symmap, abi_match):
if k in sorted(invmap.keys()):
f.write("\tglobal:\n")
for s in invmap.get(k, []):
f.write("\t\t%s;\n" % s);
f.write("\t\t%s;\n" % s)
f.write("}%s;\n\n" % last_key)
last_key = " %s" % symver
f.write("%s {\n" % current_version)

View File

@ -963,10 +963,10 @@ def CURRENT_CFLAGS(bld, target, cflags,
if not 'EXTRA_CFLAGS' in bld.env:
list = []
else:
list = bld.env['EXTRA_CFLAGS'];
list = bld.env['EXTRA_CFLAGS']
ret.extend(list)
if not allow_warnings and 'PICKY_CFLAGS' in bld.env:
list = bld.env['PICKY_CFLAGS'];
list = bld.env['PICKY_CFLAGS']
ret.extend(list)
if hide_symbols and bld.env.HAVE_VISIBILITY_ATTR:
ret.append(bld.env.VISIBILITY_CFLAGS)

View File

@ -84,7 +84,7 @@ def CHECK_ICONV(conf, define='HAVE_NATIVE_ICONV'):
@conf
def CHECK_LARGEFILE(conf, define='HAVE_LARGEFILE'):
'''see what we need for largefile support'''
getconf_cflags = conf.CHECK_COMMAND(['getconf', 'LFS_CFLAGS']);
getconf_cflags = conf.CHECK_COMMAND(['getconf', 'LFS_CFLAGS'])
if getconf_cflags is not False:
if (conf.CHECK_CODE('if (sizeof(off_t) < 8) return 1',
define='WORKING_GETCONF_LFS_CFLAGS',

View File

@ -34,18 +34,18 @@ def SAMBA_CHECK_PERL(conf, mandatory=True, version=(5,0,0)):
perl_arch_install_dir = None
if vendor_prefix == conf.env.PREFIX:
perl_arch_install_dir = check_perl_config_var('vendorarch');
perl_arch_install_dir = check_perl_config_var('vendorarch')
if perl_arch_install_dir is None:
perl_arch_install_dir = "${LIBDIR}/perl5";
perl_arch_install_dir = "${LIBDIR}/perl5"
conf.start_msg("PERL_ARCH_INSTALL_DIR: ")
conf.end_msg("'%s'" % (perl_arch_install_dir), 'GREEN')
conf.env.PERL_ARCH_INSTALL_DIR = perl_arch_install_dir
perl_lib_install_dir = None
if vendor_prefix == conf.env.PREFIX:
perl_lib_install_dir = check_perl_config_var('vendorlib');
perl_lib_install_dir = check_perl_config_var('vendorlib')
if perl_lib_install_dir is None:
perl_lib_install_dir = "${DATADIR}/perl5";
perl_lib_install_dir = "${DATADIR}/perl5"
conf.start_msg("PERL_LIB_INSTALL_DIR: ")
conf.end_msg("'%s'" % (perl_lib_install_dir), 'GREEN')
conf.env.PERL_LIB_INSTALL_DIR = perl_lib_install_dir

View File

@ -12,7 +12,7 @@ def SAMBA_PIDL(bld, pname, source,
'''Build a IDL file using pidl.
This will produce up to 13 output files depending on the options used'''
bname = source[0:-4]; # strip off the .idl suffix
bname = source[0:-4] # strip off the .idl suffix
bname = os.path.basename(bname)
name = "%s_%s" % (pname, bname.upper())