head	1.12;
access;
symbols
	PORT_44BSD_CSH_START:1.12
	PORT_44BSD_CSH:1.12
	old_RELENG_4_0_0_RELEASE:1.11
	old_RELENG_4:1.11.0.2
	old_RELENG_4_BP:1.11
	old_RELENG_3_4_0_RELEASE:1.9.2.2
	old_RELENG_3_3_0_RELEASE:1.9.2.1
	old_RELENG_3_2_PAO:1.9.0.4
	old_RELENG_3_2_PAO_BP:1.9
	old_RELENG_3_2_0_RELEASE:1.9
	old_RELENG_3_1_0_RELEASE:1.9
	old_RELENG_3:1.9.0.2
	old_RELENG_3_BP:1.9
	old_RELENG_2_2_8_RELEASE:1.5.8.1
	old_RELENG_3_0_0_RELEASE:1.9
	old_RELENG_2_2_7_RELEASE:1.5.8.1
	old_RELENG_2_2_6_RELEASE:1.5.8.1
	old_RELENG_2_2_5_RELEASE:1.5.8.1
	old_bsd_44_lite_2:1.1.1.2
	old_RELENG_2_2_2_RELEASE:1.5
	old_RELENG_2_2_1_RELEASE:1.5
	old_RELENG_2_2_0_RELEASE:1.5
	old_RELENG_2_1_7_RELEASE:1.5
	old_RELENG_2_1_6_1_RELEASE:1.5
	old_RELENG_2_1_6_RELEASE:1.5
	old_RELENG_2_2:1.5.0.8
	old_RELENG_2_2_BP:1.5
	old_RELENG_2_1_5_RELEASE:1.5
	old_RELENG_2_1_0_RELEASE:1.5
	old_RELENG_2_1_0:1.5.0.6
	old_RELENG_2_1_0_BP:1.5
	old_RELENG_2_0_5_RELEASE:1.5
	old_RELENG_2_0_5:1.5.0.4
	old_RELENG_2_0_5_BP:1.5
	old_RELENG_2_0_5_ALPHA:1.5
	old_RELEASE_2_0:1.5
	old_BETA_2_0:1.5
	old_ALPHA_2_0:1.5.0.2
	old_bsd_44_lite:1.1.1.1
	old_CSRG:1.1.1;
locks
	obrien:1.12; strict;
comment	@# @;


1.12
date	2000.04.09.22.01.51;	author obrien;	state Exp;
branches;
next	1.11;

1.11
date	99.09.08.15.40.42;	author sheldonh;	state Exp;
branches;
next	1.10;

1.10
date	99.08.27.23.13.40;	author peter;	state Exp;
branches;
next	1.9;

1.9
date	97.08.08.00.49.23;	author steve;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	97.08.07.21.42.01;	author steve;	state Exp;
branches;
next	1.7;

1.7
date	97.02.22.14.01.36;	author peter;	state Exp;
branches;
next	1.6;

1.6
date	97.01.14.05.29.19;	author jkh;	state Exp;
branches;
next	1.5;

1.5
date	94.09.24.02.53.44;	author davidg;	state Exp;
branches
	1.5.6.1
	1.5.8.1;
next	1.4;

1.4
date	94.08.07.21.28.27;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	94.08.06.01.51.03;	author wollman;	state Exp;
branches;
next	1.2;

1.2
date	94.08.05.17.02.18;	author wollman;	state Exp;
branches;
next	1.1;

1.1
date	94.05.26.06.18.14;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.05.26.06.18.15;	author rgrimes;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	97.07.01.22.33.39;	author bde;	state Exp;
branches;
next	;

1.5.6.1
date	99.09.05.11.01.10;	author peter;	state Exp;
branches;
next	;

1.5.8.1
date	97.08.24.21.41.28;	author jkh;	state Exp;
branches;
next	1.5.8.2;

1.5.8.2
date	99.09.05.10.59.32;	author peter;	state Exp;
branches;
next	;

1.9.2.1
date	99.08.29.14.11.36;	author peter;	state Exp;
branches;
next	1.9.2.2;

1.9.2.2
date	99.12.10.13.03.00;	author sheldonh;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Bring in bits from src/bin/Makefile.inc0, since this is now standalone.
@
text
@# $FreeBSD: src/bin/csh/Makefile,v 1.10 1999/08/27 23:13:40 peter Exp $
#	@@(#)Makefile	8.1 (Berkeley) 5/31/93
#
# C Shell with process control; VM/UNIX VAX Makefile
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
#
# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile.

BINDIR?=	/bin
NOSHARED?=	YES

PROG=	csh
DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
CFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
CFLAGS+=	-Wall -Wformat
SRCS=	alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
	func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
	sem.c set.c str.c time.c const.h errnum.h
.PATH:	${.CURDIR}/../../usr.bin/printf

MAN1=	csh.1
# MLINKS for Shell built in commands for which there are no userland
# utilities of the same name are handled with the associated manpage,
# builtin.1 in share/man/man1/.

CLEANFILES+=const.h errnum.h

const.h: errnum.h

errnum.h: err.c
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	@@echo '#ifndef _h_sh_error' >> ${.TARGET}
	@@echo '#define _h_sh_error' >> ${.TARGET}
	egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET}
	@@echo '#endif /* _h_sh_error */' >> ${.TARGET}

const.h: const.c
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	${CC} -E ${CFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
	    sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
	    sort >> ${.TARGET}

.include <bsd.prog.mk>
@


1.11
log
@Improve shell documentation:

* Consistently misspell built-in as builtin.

* Add a builtin(1) manpage and create builtin(1) MLINKS for all shell
  builtin commands for which no standalone utility exists.  These MLINKS
  replace those that were created for csh(1).

* Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages,
  as well as to the manpages of standalone utilities which are supported
  as shell builtin commands in at least one of the shells. In such
  manpages, explain that similar functionality may be provided as a
  shell builtin command.

* Improve sh(1)'s description of the cd builtin command. Csh(1) already
  describes it adequately. Replace the cd(1) manpage with a builtin(1)
  MLINKS link.

* Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use
  Ic instead of Xr for shell builtin commands.

* Undo English contractions.

Reviewed by:	mpp, rgrimes
@
text
@d9 3
d15 1
@


1.10
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
d18 4
a21 4
MLINKS=	csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
	csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
	csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
	csh.1 stop.1 csh.1 source.1
@


1.9
log
@More $@@ -> ${.TARGET} that I missed earlier.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.8 1997/08/07 21:42:01 steve Exp $
@


1.9.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.9.2.2
log
@MFC: Incorporate the builtin.1 manpage and its MLINKS.
     Remove the cd(1) and wait(1) manual pages (for which MLINKS are
	created instead.
     Fix some mark-up issues in csh(1) and add a builtin(1) xref to
	csh.1.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.11 1999/09/08 15:40:42 sheldonh Exp $
d18 4
a21 4
# MLINKS for Shell built in commands for which there are no userland
# utilities of the same name are handled with the associated manpage,
# builtin.1 in share/man/man1/.

@


1.8
log
@Changes include: sccsid -> rcsid, bcopy -> memcpy, don't use the
register keyword, and -Wall cleaning.

Obtained from: similar changes in NetBSD
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.7 1997/02/22 14:01:36 peter Exp $
d35 3
a37 3
	@@rm -f $@@
	@@echo '/* Do not edit this file, make creates it. */' > $@@
	${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
d39 1
a39 1
	    sort >> $@@
@


1.7
log
@Revert $FreeBSD$ to $Id$
@
text
@d1 1
a2 1
#	$Id$
d14 1
a14 1
	sem.c set.c str.c time.c const.h err.h
d22 1
a22 1
CLEANFILES+=err.h const.h
d24 1
a24 1
const.h: err.h
d26 7
a32 7
err.h: err.c
	@@rm -f $@@
	@@echo '/* Do not edit this file, make creates it. */' > $@@
	@@echo '#ifndef _h_sh_err' >> $@@
	@@echo '#define _h_sh_err' >> $@@
	egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@@
	@@echo '#endif /* _h_sh_err */' >> $@@
@


1.6
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d2 1
a2 1
#	$FreeBSD$
@


1.5
log
@Added $Id$
@
text
@d2 1
a2 1
#	$Id$
@


1.5.6.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.5.8.1
log
@YAMFC - cosmetic tweaks and some bug fixes.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.5 1994/09/24 02:53:44 davidg Exp $
d14 1
a14 1
	sem.c set.c str.c time.c const.h errnum.h
d22 1
a22 1
CLEANFILES+=const.h errnum.h
d24 1
a24 1
const.h: errnum.h
d26 7
a32 7
errnum.h: err.c
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	@@echo '#ifndef _h_sh_error' >> ${.TARGET}
	@@echo '#define _h_sh_error' >> ${.TARGET}
	egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET}
	@@echo '#endif /* _h_sh_error */' >> ${.TARGET}
d35 3
a37 3
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	${CC} -E ${CFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
d39 1
a39 1
	    sort >> ${.TARGET}
@


1.5.8.2
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.4
log
@The handling of err.h and const.h were in a real tangle and didn't
work if you didn't explicitly depend first; this should both simplify
things and make it work in all circumstances.
Reviewed by:
Submitted by:
@
text
@d2 1
@


1.3
log
@Fix some dependency bobbles.
@
text
@a9 2
#CFLAGS+=-g
#CFLAGS+=-Wall -ansi -pedantic
d13 1
a13 1
	sem.c set.c str.c time.c
a38 4

./const.h: const.h
./err.h: err.h
.depend: const.h err.h 
@


1.2
log
@Fix makefiles for our macros.
@
text
@d42 2
@


1.1
log
@Initial revision
@
text
@d18 1
a18 1
MAN1=	csh.0
@


1.1.1.1
log
@BSD 4.4 Lite bin Sources
@
text
@@


1.1.1.2
log
@Import Lite2's src/bin.  All files in src/bin are off the vendor branch,
so this doesn't change the active versions.
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.2 (Berkeley) 3/22/95
d11 1
a11 1
#CFLAGS+=-Wall 
@
