/* * Copyright 1993, 1995 Christopher Seiwald. * * This file is part of Jam - see jam.c for Copyright information. */ # include "jam.h" # include "lists.h" # include "execcmd.h" # include <errno.h> # ifdef OS_MAC /* * execunix.c - execute a shell script on UNIX * * If $(JAMSHELL) is defined, uses that to formulate execvp(). * The default is: * * /bin/sh -c % * * Each word must be an individual element in a jam variable value. * * In $(JAMSHELL), % expands to the command string and ! expands to * the slot number (starting at 1) for multiprocess (-j) invocations. * If $(JAMSHELL) doesn't include a %, it is tacked on as the last * argument. * * Don't just set JAMSHELL to /bin/sh - it won't work! * * External routines: * execcmd() - launch an async command execution * execwait() - wait and drive at most one execution completion * * Internal routines: * onintr() - bump intr to note command interruption * * 04/08/94 (seiwald) - Coherent/386 support added. * 05/04/94 (seiwald) - async multiprocess interface * 01/22/95 (seiwald) - $(JAMSHELL) support */ /* * execcmd() - launch an async command execution */ void execcmd( char *string, void (*func)( void *closure, int status ), void *closure, LIST *shell ) { printf( "%s", string ); (*func)( closure, EXEC_CMD_OK ); } /* * execwait() - wait and drive at most one execution completion */ int execwait() { return 0; } # endif /* OS_MAC */
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#8 | 2578 | Miklos Fazekas | Integrate new lexical scanner code to GSJam | ||
#7 | 2521 | Miklos Fazekas | Compile error fixes after merge | ||
#6 | 2519 | Miklos Fazekas | Sync to 2.5rc1 | ||
#5 | 1573 | Miklos Fazekas | Merge to jam mainline. | ||
#4 | 1398 | Miklos Fazekas | Cleanup. | ||
#3 | 1395 | Miklos Fazekas | Merge with main jam | ||
#2 | 1320 | Miklos Fazekas |
MacOS related fixes: - emulation of jam's behaviour in MPW shell's scripting language (ie.: failed targets are removed) - fix for out of memory errors on MacOS. - together targets are removed |
||
#1 | 1212 | Miklos Fazekas | Created a Jam branch | ||
//guest/perforce_software/jam/src/execmac.c | |||||
#3 | 486 | Perforce staff |
Jam 2.3. See RELNOTES for a list of changes from 2.2.x. Just about every source file was touched when jam got ANSI-fied. |
||
#2 | 212 | Perforce staff |
An interpretative integration of Peter Glasscock's -o file support. This is handled in the make1() routine, rather than in all the exec*.c files. -o x writes the actions to file x rather than actually running them. Implies -n (but not -d2). |
||
#1 | 2 | laura | Add Jam/MR 2.2 source |