Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. 550 * file is written to.
  2. 551 */
  3. 552 if ((slash_ptr = strrchr(make_state->string_mb, (int) slash_char)) == NULL) {
  4. 553 temp_file_directory = strdup(get_current_path());
  5. 554 } else {
  6. 555 *slash_ptr = (int) nul_char;
  7. 556 (void) strcpy(make_state_dir, make_state->string_mb);
  8. 557 *slash_ptr = (int) slash_char;
  9. 558 /* when there is only one slash and it's the first
  10. 559 ** character, make_state_dir should point to '/'.
  11. 560 */
  12. 561 if(make_state_dir[0] == '\0') {
  13. 562 make_state_dir[0] = '/';
  14. 563 make_state_dir[1] = '\0';
  15. 564 }
  16. 565 if (make_state_dir[0] == (int) slash_char) {
  17. 566 temp_file_directory = strdup(make_state_dir);
  18. 567 } else {
  19. 568 char tmp_current_path2[MAXPATHLEN];
  20. 569
  21. 570 (void) sprintf(tmp_current_path2,
  22. 571 "%s/%s",
  23. 572 get_current_path(),
  24. 573 make_state_dir);
  25. 574 temp_file_directory = strdup(tmp_current_path2);
  26. 575 }
  27. 576 }
  28. 577
  29. 578
  30. 579 report_dir_enter_leave(true);
  31. 580
  32. 581 make_targets(argc, argv, parallel_flag);
  33. 582
  34. 583 report_dir_enter_leave(false);
  35. 584 dir_enter_leave(false);
  36. 585
  37. 586 if (build_failed_ever_seen) {
  38. 587 if (posix) {
  39. 588 exit_status = 1;
  40. 589 }
  41. 590 exit(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement