diff options
author | phk <phk@FreeBSD.org> | 1995-03-30 19:45:20 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-03-30 19:45:20 +0000 |
commit | 183b7355f6228af73ec9662cf32f4d12c7693793 (patch) | |
tree | 557005cc3095588740cafd361ffbade78a411346 | |
parent | 3f6a9461862ebc7d11c0f56900ad165c4997d626 (diff) | |
download | FreeBSD-src-183b7355f6228af73ec9662cf32f4d12c7693793.zip FreeBSD-src-183b7355f6228af73ec9662cf32f4d12c7693793.tar.gz |
Make build work, even if there is no obj subdir.
-rwxr-xr-x | bin/sh/mkbuiltins | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/bin/sh/mkbuiltins b/bin/sh/mkbuiltins index 13523fa..e7f0d8d 100755 --- a/bin/sh/mkbuiltins +++ b/bin/sh/mkbuiltins @@ -35,14 +35,18 @@ # SUCH DAMAGE. # # @(#)mkbuiltins 8.1 (Berkeley) 5/31/93 -# $Id$ +# $Id: mkbuiltins,v 1.2 1994/09/24 02:57:53 davidg Exp $ temp=/tmp/ka$$ havejobs=0 if grep '^#define JOBS[ ]*1' shell.h > /dev/null then havejobs=1 fi -exec > obj/builtins.c +if [ -d obj ] ; then + exec > obj/builtins.c +else + exec > builtins.c +fi cat <<\! /* * This file was generated by the mkbuiltins program. @@ -67,7 +71,11 @@ awk '{ for (i = 2 ; i <= NF ; i++) { echo ' NULL, 0 };' -exec > obj/builtins.h +if [ -d obj ] ; then + exec > obj/builtins.h +else + exec > builtins.h +fi cat <<\! /* * This file was generated by the mkbuiltins program. |