Changeset 45 for trunk/src/kmk/job.c
- Timestamp:
- Apr 3, 2003, 4:23:37 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/job.c
r35 r45 46 46 #endif /* not lint */ 47 47 48 #if def NMAKE48 #if defined(NMAKE) || defined(KMK) 49 49 #define OLD_JOKE 1 50 50 #endif … … 190 190 static char tfile[sizeof(TMPPAT)]; 191 191 192 192 #ifndef KMK 193 193 /* 194 194 * Descriptions for various shells. … … 237 237 * executable image */ 238 238 *shellName; /* last component of shell */ 239 #endif /*!KMK*/ 239 240 240 241 … … 326 327 static void JobExec __P((Job *, char **)); 327 328 #endif 329 #ifndef KMK 328 330 static void JobMakeArgv __P((Job *, char **)); 331 #endif 329 332 static void JobRestart __P((Job *)); 330 333 static int JobStart __P((GNode *, int, Job *)); … … 594 597 cmd++; 595 598 599 #ifndef KMK 596 600 if (shutUp) { 597 601 if (!(job->flags & JOB_SILENT) && !noSpecials && … … 602 606 } 603 607 } 608 #endif 604 609 605 610 if (errOff) { 606 611 if ( !(job->flags & JOB_IGNERR) && !noSpecials) { 612 #ifdef KMK 613 errOff = FALSE; 614 #else 607 615 if (commandShell->hasErrCtl) { 608 616 /* … … 650 658 errOff = FALSE; 651 659 } 660 #endif 652 661 } else { 653 662 errOff = FALSE; … … 657 666 DBPRINTF(cmdTemplate, cmd); 658 667 668 #ifndef KMK /*todo*/ 659 669 if (errOff) { 660 670 /* … … 672 682 DBPRINTF("%s\n", commandShell->echoOn); 673 683 } 684 #endif 674 685 return 0; 675 686 } … … 1150 1161 if (strcmp(gn->name,"love") == 0) 1151 1162 (*abortProc)("Not war."); 1152 #if def NMAKE1163 #if defined(NMAKE) || defined(KMK) 1153 1164 else if (strcmp(gn->name,"fire") == 0) 1154 1165 (*abortProc)("No match."); … … 1302 1313 } else 1303 1314 #endif /* REMOTE */ 1315 #ifdef KMK 1316 (void) execv(argv[0], argv); 1317 #else 1304 1318 (void) execv(shellPath, argv); 1319 #endif 1305 1320 1306 1321 (void) write(2, "Could not execute shell\n", … … 1362 1377 } 1363 1378 1379 1364 1380 /*- 1365 1381 *----------------------------------------------------------------------- … … 1382 1398 static char args[10]; /* For merged arguments */ 1383 1399 1400 #ifndef _PATH_DEFSHELLDIR 1401 /* @todo! */ 1402 argv[0] = "c:\\os2\\cmd.exe"; 1403 argc = 1; 1404 #else 1384 1405 argv[0] = shellName; 1385 1406 argc = 1; … … 1415 1436 } 1416 1437 argv[argc] = NULL; 1438 #endif 1417 1439 } 1440 1418 1441 1419 1442 /*- … … 1988 2011 register char *ecp; 1989 2012 2013 #ifndef KMK /* @Todo */ 1990 2014 if (commandShell->noPrint) { 1991 2015 ecp = Str_FindSubstring(cp, commandShell->noPrint); … … 2023 2047 } 2024 2048 } 2049 #endif /*!KMK*/ 2025 2050 return cp; 2026 2051 } … … 2462 2487 } 2463 2488 2489 #ifndef KMK 2464 2490 if (shellPath == NULL) { 2465 2491 /* … … 2480 2506 commandShell->echo = ""; 2481 2507 } 2508 #endif 2482 2509 2483 2510 /* … … 2588 2615 } 2589 2616 2617 #ifndef KMK 2590 2618 /*- 2591 2619 *----------------------------------------------------------------------- … … 2629 2657 return(match == NULL ? sh : match); 2630 2658 } 2631 2659 #endif /*!KMK*/ 2660 2661 #ifndef KMK 2632 2662 /*- 2633 2663 *----------------------------------------------------------------------- … … 2793 2823 return SUCCESS; 2794 2824 } 2825 #endif /*!KMK*/ 2795 2826 2796 2827 /*-
Note:
See TracChangeset
for help on using the changeset viewer.