Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 550 * file is written to.
- 551 */
- 552 if ((slash_ptr = strrchr(make_state->string_mb, (int) slash_char)) == NULL) {
- 553 temp_file_directory = strdup(get_current_path());
- 554 } else {
- 555 *slash_ptr = (int) nul_char;
- 556 (void) strcpy(make_state_dir, make_state->string_mb);
- 557 *slash_ptr = (int) slash_char;
- 558 /* when there is only one slash and it's the first
- 559 ** character, make_state_dir should point to '/'.
- 560 */
- 561 if(make_state_dir[0] == '\0') {
- 562 make_state_dir[0] = '/';
- 563 make_state_dir[1] = '\0';
- 564 }
- 565 if (make_state_dir[0] == (int) slash_char) {
- 566 temp_file_directory = strdup(make_state_dir);
- 567 } else {
- 568 char tmp_current_path2[MAXPATHLEN];
- 569
- 570 (void) sprintf(tmp_current_path2,
- 571 "%s/%s",
- 572 get_current_path(),
- 573 make_state_dir);
- 574 temp_file_directory = strdup(tmp_current_path2);
- 575 }
- 576 }
- 577
- 578
- 579 report_dir_enter_leave(true);
- 580
- 581 make_targets(argc, argv, parallel_flag);
- 582
- 583 report_dir_enter_leave(false);
- 584 dir_enter_leave(false);
- 585
- 586 if (build_failed_ever_seen) {
- 587 if (posix) {
- 588 exit_status = 1;
- 589 }
- 590 exit(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement