forked from vivekp/minix-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
/etc/profile enables by default tabcompletion, as well as emacs mode, in order to keep the old MINIX ash behavior. Note: The shell now refuses to source a script without a relative or absolute path. This means: - '. myscript.sh' fails, while - '. ./myscript.sh' succeeds Change-Id: I0be89b0747bd005e4c05cadb937af86883627dc6
- Loading branch information
Showing
117 changed files
with
12,247 additions
and
10,646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# $NetBSD: Makefile,v 1.99 2012/12/02 12:55:27 apb Exp $ | ||
# @(#)Makefile 8.4 (Berkeley) 5/5/95 | ||
|
||
.include <bsd.own.mk> | ||
|
||
YHEADER=1 | ||
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 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} | ||
|
||
DPSRCS+=${GENHDRS} | ||
|
||
LDADD+= -ll -ledit -lterminfo | ||
DPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMINFO} | ||
|
||
LFLAGS= -8 # 8-bit lex scanner for arithmetic | ||
|
||
# Environment for scripts executed during build. | ||
SCRIPT_ENV= \ | ||
AWK=${TOOL_AWK:Q} \ | ||
SED=${TOOL_SED:Q} | ||
|
||
# The .depend file can get references to these temporary files | ||
.OPTIONAL: lex.yy.c y.tab.c | ||
|
||
.ifdef CRUNCHEDPROG | ||
LFLAGS+=-L | ||
YFLAGS+=-l | ||
.endif | ||
|
||
CPPFLAGS+=-DSHELL -I. -I${.CURDIR} | ||
#XXX: For testing only. | ||
#CPPFLAGS+=-DDEBUG=2 | ||
#COPTS+=-g | ||
#CFLAGS+=-funsigned-char | ||
#TARGET_CHARFLAG?= -DTARGET_CHAR="unsigned char" -funsigned-char | ||
|
||
.ifdef SMALLPROG | ||
CPPFLAGS+=-DSMALL | ||
.else | ||
SRCS+=printf.c | ||
.endif | ||
|
||
.PATH: ${.CURDIR}/bltin ${NETBSDSRCDIR}/bin/test \ | ||
${NETBSDSRCDIR}/usr.bin/printf \ | ||
${NETBSDSRCDIR}/bin/kill | ||
|
||
CLEANFILES+= ${GENSRCS} ${GENHDRS} y.tab.h | ||
CLEANFILES+= trace | ||
|
||
token.h: mktokens | ||
${_MKTARGET_CREATE} | ||
${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} | ||
|
||
.ORDER: builtins.h builtins.c | ||
builtins.h builtins.c: mkbuiltins shell.h builtins.def | ||
${_MKTARGET_CREATE} | ||
${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} ${.OBJDIR} | ||
[ -f builtins.h ] | ||
|
||
init.c: mkinit.sh ${SHSRCS} | ||
${_MKTARGET_CREATE} | ||
${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} | ||
|
||
.ORDER: nodes.h nodes.c | ||
nodes.c nodes.h: mknodes.sh nodetypes nodes.c.pat | ||
${_MKTARGET_CREATE} | ||
${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} ${.OBJDIR} | ||
[ -f nodes.h ] | ||
|
||
.if ${USETOOLS} == "yes" | ||
NBCOMPATLIB= -L${TOOLDIR}/lib -lnbcompat | ||
.endif | ||
|
||
.if make(install) | ||
SUBDIR+=USD.doc | ||
.endif | ||
|
||
COPTS.printf.c = -Wno-format-nonliteral | ||
COPTS.jobs.c = -Wno-format-nonliteral | ||
|
||
.include <bsd.prog.mk> | ||
.include <bsd.subdir.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# $NetBSD: Makefile,v 1.1 2010/08/22 01:58:16 perry Exp $ | ||
# @(#)Makefile 8.1 (Berkeley) 8/14/93 | ||
|
||
DIR= usd/03.shell | ||
SRCS= Rv7man t.mac t1 t2 t3 t4 | ||
MACROS= -ms | ||
|
||
paper.ps: ${SRCS} | ||
${TOOL_REFER} -e -p ${SRCS} | \ | ||
${TOOL_ROFF_PS} ${MACROS} > ${.TARGET} | ||
|
||
.include <bsd.doc.mk> |
Oops, something went wrong.