mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 14:01:59 +01:00
Make build work, even if there is no obj subdir.
This commit is contained in:
parent
7685716d64
commit
295a3379fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7502
@ -35,14 +35,18 @@
|
|||||||
# SUCH DAMAGE.
|
# SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
# @(#)mkbuiltins 8.1 (Berkeley) 5/31/93
|
# @(#)mkbuiltins 8.1 (Berkeley) 5/31/93
|
||||||
# $Id$
|
# $Id: mkbuiltins,v 1.2 1994/09/24 02:57:53 davidg 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
|
||||||
|
exec > obj/builtins.c
|
||||||
|
else
|
||||||
|
exec > builtins.c
|
||||||
|
fi
|
||||||
cat <<\!
|
cat <<\!
|
||||||
/*
|
/*
|
||||||
* This file was generated by the mkbuiltins program.
|
* This file was generated by the mkbuiltins program.
|
||||||
@ -67,7 +71,11 @@ awk '{ for (i = 2 ; i <= NF ; i++) {
|
|||||||
echo ' NULL, 0
|
echo ' NULL, 0
|
||||||
};'
|
};'
|
||||||
|
|
||||||
exec > obj/builtins.h
|
if [ -d obj ] ; then
|
||||||
|
exec > obj/builtins.h
|
||||||
|
else
|
||||||
|
exec > builtins.h
|
||||||
|
fi
|
||||||
cat <<\!
|
cat <<\!
|
||||||
/*
|
/*
|
||||||
* This file was generated by the mkbuiltins program.
|
* This file was generated by the mkbuiltins program.
|
||||||
|
Loading…
Reference in New Issue
Block a user