# Copyright (c) 1991 The Regents of the University of California.
# This code is derived from software contributed to Berkeley by
# %sccs.include.redist.sh%
# @(#)mkbuiltins 5.2 (Berkeley) %G%
if grep '^#define JOBS[ ]*1' shell.h
> /dev
/null
* This
file was generated by the mkbuiltins program.
awk '/^[^#]/ {if('$havejobs' || $2 != "-j") print $0}' builtins |
awk '{ printf "int %s();\n", $1}' $temp
int (*const builtinfunc[])() = {'
awk '/^[^#]/ { printf "\t%s,\n", $1}' $temp
const struct builtincmd builtincmd[] = {'
awk '{ for (i = 2 ; i <= NF ; i++) {
printf "\t\"%s\", %d,\n", $i, NR-1
* This
file was generated by the mkbuiltins program.
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
< $temp |
awk '{ printf "#define %s %d\n", $1, NR-1}'
extern int (*const builtinfunc[])();
extern const struct builtincmd builtincmd[];'