reverse sense of waf sudo flag to --enable-sudo
authorCraig Dowell <craigdo@ee.washington.edu>
Thu Oct 30 13:00:16 2008 -0700 (15 months ago)
changeset 3834debf281cc42b
parent 3833 65517a42bcb8
child 3835 8966e68809a6
reverse sense of waf sudo flag to --enable-sudo
wscript
     1.1 --- a/wscript	Thu Oct 30 10:30:33 2008 -0700
     1.2 +++ b/wscript	Thu Oct 30 13:00:16 2008 -0700
     1.3 @@ -167,9 +167,9 @@
     1.4                     help=('For regression testing, only run/generate the indicated regression tests, '
     1.5                           'specified as a comma separated list of test names'),
     1.6                     dest='regression_tests', type="string")
     1.7 -    opt.add_option('--disable-sudo',
     1.8 -                   help=('Do not attempt to use sudo to setup suid bits on ns3 executables.'),
     1.9 -                   dest='disable_sudo', action='store_true',
    1.10 +    opt.add_option('--enable-sudo',
    1.11 +                   help=('Use sudo to setup suid bits on ns3 executables.'),
    1.12 +                   dest='enable_sudo', action='store_true',
    1.13                     default=False)
    1.14  
    1.15      # options provided in a script in a subdirectory named "src"
    1.16 @@ -327,7 +327,7 @@
    1.17      program.module_deps = list()
    1.18      program.name = name
    1.19      program.target = name
    1.20 -    if bld.env ()['SUDO'] and not Params.g_options.disable_sudo:
    1.21 +    if bld.env ()['SUDO'] and Params.g_options.enable_sudo:
    1.22          SuidBuildTask (bld, program)
    1.23      return program
    1.24