don't include the printf builtin if we are SMALL; saves 10K.
This commit is contained in:
parent
5fb3053fed
commit
95a737969b
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.77 2004/01/17 17:38:12 dsl Exp $
|
||||
# $NetBSD: Makefile,v 1.78 2004/06/06 07:03:11 christos Exp $
|
||||
# @(#)Makefile 8.4 (Berkeley) 5/5/95
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
@ -8,7 +8,7 @@ PROG= sh
|
|||
SHSRCS= alias.c cd.c echo.c error.c eval.c exec.c expand.c \
|
||||
histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
|
||||
mystring.c options.c parser.c redir.c show.c trap.c output.c var.c \
|
||||
test.c printf.c kill.c syntax.c
|
||||
test.c kill.c syntax.c
|
||||
GENSRCS=arith.c arith_lex.c builtins.c init.c nodes.c
|
||||
GENHDRS=arith.h builtins.h nodes.h token.h
|
||||
SRCS= ${SHSRCS} ${GENSRCS}
|
||||
|
@ -37,6 +37,8 @@ CPPFLAGS+=-DSHELL -I. -I${.CURDIR}
|
|||
|
||||
.ifdef SMALLPROG
|
||||
CPPFLAGS+=-DSMALL
|
||||
.else
|
||||
SRCS+=printf.c
|
||||
.endif
|
||||
|
||||
.PATH: ${.CURDIR}/bltin ${NETBSDSRCDIR}/bin/test \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh -
|
||||
# $NetBSD: builtins.def,v 1.19 2003/08/22 14:21:12 itojun Exp $
|
||||
# $NetBSD: builtins.def,v 1.20 2004/06/06 07:03:11 christos Exp $
|
||||
#
|
||||
# Copyright (c) 1991, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
|
@ -65,7 +65,9 @@ hashcmd hash
|
|||
jobidcmd jobid
|
||||
jobscmd -u jobs
|
||||
localcmd local
|
||||
#ifndef SMALL
|
||||
printfcmd printf
|
||||
#endif
|
||||
pwdcmd -u pwd
|
||||
readcmd -u read
|
||||
returncmd -s return
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh -
|
||||
# $NetBSD: mkbuiltins,v 1.20 2003/08/22 11:22:23 agc Exp $
|
||||
# $NetBSD: mkbuiltins,v 1.21 2004/06/06 07:03:11 christos Exp $
|
||||
#
|
||||
# Copyright (c) 1991, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
|
@ -83,9 +83,17 @@ while read line
|
|||
do
|
||||
set -- $line
|
||||
[ -z "$1" ] && continue
|
||||
case "$1" in
|
||||
\#if*|\#def*|\#end*)
|
||||
echo $line >&3
|
||||
echo $line >&4
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
l1="${line###}"
|
||||
[ "$l1" != "$line" ] && continue
|
||||
|
||||
|
||||
func=$1
|
||||
shift
|
||||
[ x"$1" = x'-j' ] && {
|
||||
|
|
Loading…
Reference in New Issue