Don't lose if obj dir not present.
This commit is contained in:
parent
4b1a29e027
commit
a69a5fcfec
|
@ -36,14 +36,15 @@
|
||||||
#
|
#
|
||||||
# @(#)mkbuiltins 5.2 (Berkeley) 3/8/91
|
# @(#)mkbuiltins 5.2 (Berkeley) 3/8/91
|
||||||
#
|
#
|
||||||
# $Header: /cvsroot/src/bin/sh/mkbuiltins,v 1.3 1993/03/23 00:28:34 cgd Exp $
|
# $Header: /cvsroot/src/bin/sh/mkbuiltins,v 1.4 1993/04/18 17:37:21 mycroft Exp $
|
||||||
|
|
||||||
temp=/tmp/ka$$
|
temp=/tmp/ka$$
|
||||||
havejobs=0
|
havejobs=0
|
||||||
if grep '^#define JOBS[ ]*1' shell.h > /dev/null
|
if grep '^#define JOBS[ ]*1' shell.h > /dev/null
|
||||||
then havejobs=1
|
then havejobs=1
|
||||||
fi
|
fi
|
||||||
exec > obj/builtins.c
|
if [ -d obj ]; then objdir=obj; else objdir=.; fi
|
||||||
|
exec > ${objdir}/builtins.c
|
||||||
cat <<\!
|
cat <<\!
|
||||||
/*
|
/*
|
||||||
* This file was generated by the mkbuiltins program.
|
* This file was generated by the mkbuiltins program.
|
||||||
|
@ -68,7 +69,7 @@ awk '{ for (i = 2 ; i <= NF ; i++) {
|
||||||
echo ' NULL, 0
|
echo ' NULL, 0
|
||||||
};'
|
};'
|
||||||
|
|
||||||
exec > obj/builtins.h
|
exec > ${objdir}/builtins.h
|
||||||
cat <<\!
|
cat <<\!
|
||||||
/*
|
/*
|
||||||
* This file was generated by the mkbuiltins program.
|
* This file was generated by the mkbuiltins program.
|
||||||
|
|
Loading…
Reference in New Issue