diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-10-25 12:52:00 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-10-28 13:10:27 +0200 |
commit | 3167b95cad5b7963d6ee9e96f29c83f47362322b (patch) | |
tree | c2dee3b085d8299ddf8c782f0e0b2cdebcb1cf3c /examples | |
parent | 2330e52cacef0f1cf0e766cd25d23715be5102ef (diff) | |
download | samba-3167b95cad5b7963d6ee9e96f29c83f47362322b.tar.gz |
examples: rework wscript to use a loop
I think this format is more compact and easier to understand.
Andrew Bartlett
Diffstat (limited to 'examples')
-rw-r--r-- | examples/libsmbclient/wscript_build | 107 |
1 files changed, 23 insertions, 84 deletions
diff --git a/examples/libsmbclient/wscript_build b/examples/libsmbclient/wscript_build index f9ab3dc6af3..84e03f394a5 100644 --- a/examples/libsmbclient/wscript_build +++ b/examples/libsmbclient/wscript_build @@ -1,86 +1,25 @@ #!/usr/bin/env python -bld.SAMBA_BINARY('testsmbc', - source='testsmbc.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testacl', - source='testacl.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testacl2', - source='testacl2.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testacl3', - source='testacl3.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testbrowse', - source='testbrowse.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testbrowse2', - source='testbrowse2.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('teststat', - source='teststat.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('teststat2', - source='teststat2.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('teststat3', - source='teststat3.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('teststatvfs', - source='teststatvfs.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testfstatvfs', - source='testfstatvfs.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testtruncate', - source='testtruncate.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testchmod', - source='testchmod.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testutime', - source='testutime.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testread', - source='testread.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testwrite', - source='testwrite.c', - deps='smbclient', - install=False) - -bld.SAMBA_BINARY('testctx', - source='testctx.c', - deps='smbclient', - install=False) +names = ['testsmbc', + 'testacl', + 'testacl2', + 'testacl3', + 'testbrowse', + 'testbrowse2', + 'teststat', + 'teststat2', + 'teststat3', + 'teststatvfs', + 'testfstatvfs', + 'testtruncate', + 'testchmod', + 'testutime', + 'testread', + 'testwrite', + 'testctx'] + +for name in names: + bld.SAMBA_BINARY(name, + source='%s.c' % name, + deps='smbclient', + install=False) |