VirtualBox

Changeset 521 in kBuild


Ignore:
Timestamp:
Sep 16, 2006 6:03:05 AM (18 years ago)
Author:
bird
Message:

Make sure kmk_builtin commands don't get batch files and odd weird stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/job.c

    r520 r521  
    32063206    warn_undefined_variables_flag = save;
    32073207  }
    3208 #if defined(CONFIG_WITH_KMK_BUILTIN) && defined(WINDOWS32)
    3209   /* On windows we have to avoid batch mode for builtin commands. */
    3210   if (!strncmp(line, "kmk_builtin_", sizeof("kmk_builtin_") - 1))
     3208
     3209#ifdef CONFIG_WITH_KMK_BUILTIN
     3210  /* If it's a kmk_builtin command, make sure we're treated like a
     3211     unix shell and and don't get batch files. */
     3212  if (   (  !unixy_shell
     3213          || batch_mode_shell
     3214# ifdef WINDOWS32
     3215          || no_default_sh_exe
     3216# endif
     3217         )
     3218      && !strncmp(line, "kmk_builtin_", sizeof("kmk_builtin_") - 1))
    32113219  {
    32123220    int saved_batch_mode_shell = batch_mode_shell;
     3221    int saved_unixy_shell = unixy_shell;
     3222# ifdef WINDOWS32
    32133223    int saved_no_default_sh_exe = no_default_sh_exe;
    3214     int saved_unixy_shell = unixy_shell;
     3224    no_default_sh_exe = 0;
     3225# endif
    32153226    unixy_shell = 1;
    32163227    batch_mode_shell = 0;
    3217     no_default_sh_exe = 0;
    32183228    argv = construct_command_argv_internal (line, restp, shell, ifs, batch_filename_ptr);
    3219     no_default_sh_exe = saved_no_default_sh_exe;
    32203229    batch_mode_shell = saved_batch_mode_shell;
    32213230    unixy_shell = saved_unixy_shell;
     3231# ifdef WINDOWS32
     3232    no_default_sh_exe = saved_no_default_sh_exe;
     3233# endif
    32223234  }
    32233235  else
    3224 #endif
     3236#endif /* CONFIG_WITH_KMK_BUILTIN */
    32253237  argv = construct_command_argv_internal (line, restp, shell, ifs, batch_filename_ptr);
    32263238
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette