use rc in awk, remove awk from APEDIRS in cmd mkfile
This commit is contained in:
parent
6e1592c94e
commit
a141f4c53a
|
@ -64,17 +64,12 @@ system(const char *s)
|
||||||
{
|
{
|
||||||
char status[512], *statfld[5];
|
char status[512], *statfld[5];
|
||||||
int w, pid;
|
int w, pid;
|
||||||
char cmd[30], *oty;
|
|
||||||
|
|
||||||
oty = getenv("cputype");
|
|
||||||
if(!oty)
|
|
||||||
return -1;
|
|
||||||
if(!s)
|
if(!s)
|
||||||
return 1; /* a command interpreter is available */
|
return 1; /* a command interpreter is available */
|
||||||
pid = fork();
|
pid = fork();
|
||||||
snprint(cmd, sizeof cmd, "/%s/bin/ape/sh", oty);
|
|
||||||
if(pid == 0) {
|
if(pid == 0) {
|
||||||
execl(cmd, "sh", "-c", s, nil);
|
execl("/bin/rc", "rc", "-c", s, nil);
|
||||||
exits("exec");
|
exits("exec");
|
||||||
}
|
}
|
||||||
if(pid < 0){
|
if(pid < 0){
|
||||||
|
|
|
@ -13,7 +13,7 @@ NOMK=$NOTSYS
|
||||||
|
|
||||||
cpuobjtype=`{sed -n 's/^O=//p' /$cputype/mkfile}
|
cpuobjtype=`{sed -n 's/^O=//p' /$cputype/mkfile}
|
||||||
DIRS=`{echo */mkfile | sed 's,/mkfile *,\n,g' | grep -v '^('$NOMK')$'}
|
DIRS=`{echo */mkfile | sed 's,/mkfile *,\n,g' | grep -v '^('$NOMK')$'}
|
||||||
APEDIRS=awk bzip2 compress cvs eqn grap gs links-ape lp pic postscript spin \
|
APEDIRS=bzip2 compress cvs eqn grap gs links-ape lp pic postscript spin \
|
||||||
tex troff
|
tex troff
|
||||||
|
|
||||||
none:VQ:
|
none:VQ:
|
||||||
|
|
Loading…
Reference in a new issue