head	1.43;
access;
symbols
	RELENG_8_4:1.43.0.2
	RELENG_9_1_0_RELEASE:1.41.2.2.2.2
	RELENG_9_1:1.41.2.2.0.2
	RELENG_9_1_BP:1.41.2.2
	RELENG_8_3_0_RELEASE:1.40.10.1.8.1
	RELENG_8_3:1.40.10.1.0.8
	RELENG_8_3_BP:1.40.10.1
	RELENG_9_0_0_RELEASE:1.41.2.1.2.1
	RELENG_9_0:1.41.2.1.0.2
	RELENG_9_0_BP:1.41.2.1
	RELENG_9:1.41.0.2
	RELENG_9_BP:1.41
	RELENG_7_4_0_RELEASE:1.40.14.1
	RELENG_8_2_0_RELEASE:1.40.10.1.6.1
	RELENG_7_4:1.40.0.14
	RELENG_7_4_BP:1.40
	RELENG_8_2:1.40.10.1.0.6
	RELENG_8_2_BP:1.40.10.1
	RELENG_8_1_0_RELEASE:1.40.10.1.4.1
	RELENG_8_1:1.40.10.1.0.4
	RELENG_8_1_BP:1.40.10.1
	RELENG_7_3_0_RELEASE:1.40.12.1
	RELENG_7_3:1.40.0.12
	RELENG_7_3_BP:1.40
	RELENG_8_0_0_RELEASE:1.40.10.1.2.1
	RELENG_8_0:1.40.10.1.0.2
	RELENG_8_0_BP:1.40.10.1
	RELENG_8:1.40.0.10
	RELENG_8_BP:1.40
	RELENG_7_2_0_RELEASE:1.40.8.1
	RELENG_7_2:1.40.0.8
	RELENG_7_2_BP:1.40
	RELENG_7_1_0_RELEASE:1.40.6.1
	RELENG_6_4_0_RELEASE:1.36.2.2.2.1
	RELENG_7_1:1.40.0.6
	RELENG_7_1_BP:1.40
	RELENG_6_4:1.36.2.2.0.2
	RELENG_6_4_BP:1.36.2.2
	RELENG_7_0_0_RELEASE:1.40
	RELENG_6_3_0_RELEASE:1.36.2.1
	RELENG_7_0:1.40.0.4
	RELENG_7_0_BP:1.40
	RELENG_6_3:1.36.2.1.0.6
	RELENG_6_3_BP:1.36.2.1
	RELENG_7:1.40.0.2
	RELENG_7_BP:1.40
	RELENG_6_2_0_RELEASE:1.36.2.1
	RELENG_6_2:1.36.2.1.0.4
	RELENG_6_2_BP:1.36.2.1
	RELENG_5_5_0_RELEASE:1.35
	RELENG_5_5:1.35.0.8
	RELENG_5_5_BP:1.35
	RELENG_6_1_0_RELEASE:1.36.2.1
	RELENG_6_1:1.36.2.1.0.2
	RELENG_6_1_BP:1.36.2.1
	RELENG_6_0_0_RELEASE:1.36
	RELENG_6_0:1.36.0.4
	RELENG_6_0_BP:1.36
	RELENG_6:1.36.0.2
	RELENG_6_BP:1.36
	RELENG_5_4_0_RELEASE:1.35
	RELENG_5_4:1.35.0.6
	RELENG_5_4_BP:1.35
	RELENG_4_11_0_RELEASE:1.11.2.8
	RELENG_4_11:1.11.2.8.0.12
	RELENG_4_11_BP:1.11.2.8
	RELENG_5_3_0_RELEASE:1.35
	RELENG_5_3:1.35.0.4
	RELENG_5_3_BP:1.35
	RELENG_5:1.35.0.2
	RELENG_5_BP:1.35
	RELENG_4_10_0_RELEASE:1.11.2.8
	RELENG_4_10:1.11.2.8.0.10
	RELENG_4_10_BP:1.11.2.8
	RELENG_5_2_1_RELEASE:1.34
	RELENG_5_2_0_RELEASE:1.34
	RELENG_5_2:1.34.0.2
	RELENG_5_2_BP:1.34
	RELENG_4_9_0_RELEASE:1.11.2.8
	RELENG_4_9:1.11.2.8.0.8
	RELENG_4_9_BP:1.11.2.8
	RELENG_5_1_0_RELEASE:1.30
	RELENG_5_1:1.30.0.2
	RELENG_5_1_BP:1.30
	RELENG_4_8_0_RELEASE:1.11.2.8
	RELENG_4_8:1.11.2.8.0.6
	RELENG_4_8_BP:1.11.2.8
	RELENG_5_0_0_RELEASE:1.29
	RELENG_5_0:1.29.0.2
	RELENG_5_0_BP:1.29
	RELENG_4_7_0_RELEASE:1.11.2.8
	RELENG_4_7:1.11.2.8.0.4
	RELENG_4_7_BP:1.11.2.8
	RELENG_4_6_2_RELEASE:1.11.2.8
	RELENG_4_6_1_RELEASE:1.11.2.8
	RELENG_4_6_0_RELEASE:1.11.2.8
	RELENG_4_6:1.11.2.8.0.2
	RELENG_4_6_BP:1.11.2.8
	RELENG_4_5_0_RELEASE:1.11.2.7
	RELENG_4_5:1.11.2.7.0.4
	RELENG_4_5_BP:1.11.2.7
	RELENG_4_4_0_RELEASE:1.11.2.7
	RELENG_4_4:1.11.2.7.0.2
	RELENG_4_4_BP:1.11.2.7
	RELENG_4_3_0_RELEASE:1.11.2.6
	RELENG_4_3:1.11.2.6.0.2
	RELENG_4_3_BP:1.11.2.6
	RELENG_4_2_0_RELEASE:1.11.2.3
	RELENG_4_1_1_RELEASE:1.11.2.3
	PRE_SMPNG:1.20
	RELENG_4_1_0_RELEASE:1.11.2.3
	RELENG_3_5_0_RELEASE:1.9.2.4
	RELENG_4_0_0_RELEASE:1.11
	RELENG_4:1.11.0.2
	RELENG_4_BP:1.11
	RELENG_3_4_0_RELEASE:1.9.2.2
	RELENG_3_3_0_RELEASE:1.9.2.1
	RELENG_3_2_PAO:1.9.0.4
	RELENG_3_2_PAO_BP:1.9
	RELENG_3_2_0_RELEASE:1.9
	RELENG_3_1_0_RELEASE:1.9
	RELENG_3:1.9.0.2
	RELENG_3_BP:1.9
	RELENG_2_2_8_RELEASE:1.5.8.1
	RELENG_3_0_0_RELEASE:1.9
	RELENG_2_2_7_RELEASE:1.5.8.1
	RELENG_2_2_6_RELEASE:1.5.8.1
	RELENG_2_2_5_RELEASE:1.5.8.1
	bsd_44_lite_2:1.1.1.2
	RELENG_2_2_2_RELEASE:1.5
	RELENG_2_2_1_RELEASE:1.5
	RELENG_2_2_0_RELEASE:1.5
	RELENG_2_1_7_RELEASE:1.5
	RELENG_2_1_6_1_RELEASE:1.5
	RELENG_2_1_6_RELEASE:1.5
	RELENG_2_2:1.5.0.8
	RELENG_2_2_BP:1.5
	RELENG_2_1_5_RELEASE:1.5
	RELENG_2_1_0_RELEASE:1.5
	RELENG_2_1_0:1.5.0.6
	RELENG_2_1_0_BP:1.5
	RELENG_2_0_5_RELEASE:1.5
	RELENG_2_0_5:1.5.0.4
	RELENG_2_0_5_BP:1.5
	RELENG_2_0_5_ALPHA:1.5
	RELEASE_2_0:1.5
	BETA_2_0:1.5
	ALPHA_2_0:1.5.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.43
date	2012.11.17.01.48.28;	author svnexp;	state Exp;
branches
	1.43.2.1;
next	1.42;

1.42
date	2012.02.22.03.36.15;	author mp;	state Exp;
branches;
next	1.41;

1.41
date	2011.02.26.18.54.54;	author ume;	state Exp;
branches
	1.41.2.1;
next	1.40;

1.40
date	2006.03.19.19.10.39;	author ru;	state Exp;
branches
	1.40.2.1
	1.40.6.1
	1.40.8.1
	1.40.10.1
	1.40.12.1
	1.40.14.1;
next	1.39;

1.39
date	2006.03.17.18.54.20;	author ru;	state Exp;
branches;
next	1.38;

1.38
date	2006.02.19.06.40.29;	author ume;	state Exp;
branches;
next	1.37;

1.37
date	2005.08.03.09.22.03;	author phk;	state Exp;
branches;
next	1.36;

1.36
date	2005.04.24.19.44.43;	author mp;	state Exp;
branches
	1.36.2.1;
next	1.35;

1.35
date	2004.02.23.20.05.14;	author johan;	state Exp;
branches;
next	1.34;

1.34
date	2003.07.11.05.24.31;	author kan;	state Exp;
branches;
next	1.33;

1.33
date	2003.06.29.18.46.17;	author gordon;	state Exp;
branches;
next	1.32;

1.32
date	2003.06.13.07.04.01;	author markm;	state Exp;
branches;
next	1.31;

1.31
date	2003.06.06.13.46.55;	author kuriyama;	state Exp;
branches;
next	1.30;

1.30
date	2003.05.02.06.39.13;	author obrien;	state Exp;
branches;
next	1.29;

1.29
date	2002.07.24.22.26.44;	author mp;	state Exp;
branches;
next	1.28;

1.28
date	2002.07.02.12.37.08;	author ru;	state Exp;
branches;
next	1.27;

1.27
date	2002.02.12.04.50.12;	author mp;	state Exp;
branches;
next	1.26;

1.26
date	2002.02.04.02.49.17;	author kris;	state Exp;
branches;
next	1.25;

1.25
date	2001.12.04.01.57.39;	author obrien;	state Exp;
branches;
next	1.24;

1.24
date	2001.03.27.10.02.48;	author ru;	state Exp;
branches;
next	1.23;

1.23
date	2000.12.05.22.10.43;	author obrien;	state Exp;
branches;
next	1.22;

1.22
date	2000.12.03.16.28.56;	author ache;	state Exp;
branches;
next	1.21;

1.21
date	2000.11.30.21.38.32;	author ache;	state Exp;
branches;
next	1.20;

1.20
date	2000.07.07.08.27.59;	author ache;	state Exp;
branches;
next	1.19;

1.19
date	2000.07.06.22.05.41;	author ache;	state Exp;
branches;
next	1.18;

1.18
date	2000.06.11.03.25.59;	author ache;	state Exp;
branches;
next	1.17;

1.17
date	2000.05.15.14.24.32;	author bde;	state Exp;
branches;
next	1.16;

1.16
date	2000.05.05.08.12.11;	author jkoshy;	state Exp;
branches;
next	1.15;

1.15
date	2000.04.23.18.08.49;	author obrien;	state Exp;
branches;
next	1.14;

1.14
date	2000.04.20.08.57.59;	author ache;	state Exp;
branches;
next	1.13;

1.13
date	2000.04.19.15.15.19;	author obrien;	state Exp;
branches;
next	1.12;

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

1.11
date	99.09.08.15.40.42;	author sheldonh;	state Exp;
branches
	1.11.2.1;
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.43.2.1
date	2012.11.17.01.48.28;	author svnexp;	state dead;
branches;
next	1.43.2.2;

1.43.2.2
date	2013.03.28.13.00.03;	author svnexp;	state Exp;
branches;
next	;

1.41.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.41.2.1.2.1;
next	1.41.2.2;

1.41.2.2
date	2012.03.07.01.26.24;	author mp;	state Exp;
branches
	1.41.2.2.2.1;
next	1.41.2.3;

1.41.2.3
date	2012.11.17.11.36.03;	author svnexp;	state Exp;
branches;
next	;

1.41.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.41.2.1.2.2;

1.41.2.1.2.2
date	2012.11.17.08.36.04;	author svnexp;	state Exp;
branches;
next	;

1.41.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.41.2.2.2.2;

1.41.2.2.2.2
date	2012.11.17.08.46.53;	author svnexp;	state Exp;
branches;
next	;

1.40.2.1
date	2012.03.07.22.19.43;	author mp;	state Exp;
branches;
next	1.40.2.2;

1.40.2.2
date	2012.11.17.08.00.44;	author svnexp;	state Exp;
branches;
next	;

1.40.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.40.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.40.10.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.40.10.1.2.1
	1.40.10.1.4.1
	1.40.10.1.6.1
	1.40.10.1.8.1;
next	1.40.10.2;

1.40.10.2
date	2012.03.07.01.31.29;	author mp;	state Exp;
branches;
next	1.40.10.3;

1.40.10.3
date	2012.11.17.10.35.48;	author svnexp;	state Exp;
branches;
next	;

1.40.10.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.40.10.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.40.10.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.40.10.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.40.10.1.8.2;

1.40.10.1.8.2
date	2012.11.17.08.24.31;	author svnexp;	state Exp;
branches;
next	;

1.40.12.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.40.14.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.40.14.2;

1.40.14.2
date	2012.11.17.08.16.31;	author svnexp;	state Exp;
branches;
next	;

1.36.2.1
date	2006.02.26.06.17.59;	author ume;	state Exp;
branches;
next	1.36.2.2;

1.36.2.2
date	2008.03.11.22.12.58;	author delphij;	state Exp;
branches
	1.36.2.2.2.1;
next	1.36.2.3;

1.36.2.3
date	2012.11.17.07.38.32;	author svnexp;	state Exp;
branches;
next	;

1.36.2.2.2.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.11.2.1
date	2000.07.04.05.29.25;	author obrien;	state Exp;
branches;
next	1.11.2.2;

1.11.2.2
date	2000.07.06.22.06.24;	author ache;	state Exp;
branches;
next	1.11.2.3;

1.11.2.3
date	2000.07.07.08.29.33;	author ache;	state Exp;
branches;
next	1.11.2.4;

1.11.2.4
date	2000.12.07.16.33.39;	author obrien;	state Exp;
branches;
next	1.11.2.5;

1.11.2.5
date	2001.03.04.21.23.16;	author obrien;	state Exp;
branches;
next	1.11.2.6;

1.11.2.6
date	2001.03.05.05.46.11;	author obrien;	state Exp;
branches;
next	1.11.2.7;

1.11.2.7
date	2001.04.25.09.12.49;	author ru;	state Exp;
branches;
next	1.11.2.8;

1.11.2.8
date	2002.02.19.00.36.40;	author mp;	state Exp;
branches;
next	1.11.2.9;

1.11.2.9
date	2012.11.17.07.21.59;	author svnexp;	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	1.9.2.3;

1.9.2.3
date	2000.05.05.08.07.27;	author jkoshy;	state Exp;
branches;
next	1.9.2.4;

1.9.2.4
date	2000.05.05.08.25.55;	author jkoshy;	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.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	;


desc
@@


1.43
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/bin/csh/Makefile 231990 2012-02-22 03:36:15Z mp $
#	@@(#)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.

.include <bsd.own.mk>

TCSHDIR= ${.CURDIR}/../../contrib/tcsh
.PATH: ${TCSHDIR}

PROG=	csh
.if defined(RESCUE)
DFLAGS= -D_PATH_TCSHELL='"/rescue/${PROG}"'
.else
DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"'
.endif
CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS}
WARNS?=	1
SRCS=	sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
	sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
	sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
	sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h
SRCS+=	sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h
SRCS+=	tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \
	tw.comp.c tw.color.c
SRCS+=	ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \
	ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h
SRCS+=	tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
	tc.func.c tc.nls.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
	tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \
	tc.who.c tc.h
GENHDRS= ed.defns.h sh.err.h tc.const.h tc.defs.c
SRCS+=	${GENHDRS}

MLINKS= csh.1 tcsh.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/.

DPADD=	${LIBTERMCAP} ${LIBCRYPT}
LDADD=	-ltermcap -lcrypt

LINKS=	${BINDIR}/csh ${BINDIR}/tcsh

CLEANFILES= ${GENHDRS} gethost csh.1

.if ${MK_EXAMPLES} != "no"
FILESDIR= ${SHAREDIR}/examples/tcsh
FILES= complete.tcsh csh-mode.el
.endif

CATALOGS=	et:et_EE.ISO8859-15 \
		finnish:fi_FI.ISO8859-1 \
		french:fr_FR.ISO8859-1 \
		german:de_DE.ISO8859-1 \
		greek:el_GR.ISO8859-7 \
		italian:it_IT.ISO8859-1 \
		ja:ja_JP.eucJP \
		russian:ru_RU.KOI8-R \
		spanish:es_ES.ISO8859-1 \
		ukrainian:uk_UA.KOI8-U

NLSLINKS_fi_FI.ISO8859-1= fi_FI.ISO8859-15
NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \
		fr_CA.ISO8859-1 fr_CA.ISO8859-15 fr_CH.ISO8859-1 \
		fr_CH.ISO8859-15 fr_FR.ISO8859-15
NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \
		de_CH.ISO8859-15 de_DE.ISO8859-15
NLSLINKS_it_IT.ISO8859-1= it_CH.ISO8859-1 it_CH.ISO8859-15 it_IT.ISO8859-15
NLSLINKS_es_ES.ISO8859-1= es_ES.ISO8859-15

.if ${MK_NLS_CATALOGS} == "no" || defined(RESCUE)
CFLAGS+= -DNO_NLS_CATALOGS
.else
CFLAGS+= -DHAVE_ICONV
.if ${MK_ICONV} != "no"
NLSLINKS_de_DE.ISO8859-1 += de_AT.UTF-8 de_CH.UTF-8 de_DE.UTF-8
NLSLINKS_el_GR.ISO8859-7 = el_GR.UTF-8
NLSLINKS_es_ES.ISO8859-1 += es_ES.UTF-8
NLSLINKS_et_EE.ISO8859-15 = et_EE.UTF-8
NLSLINKS_fi_FI.ISO8859-1 += fi_FI.UTF-8
NLSLINKS_fr_FR.ISO8859-1 += fr_BE.UTF-8 fr_CA.UTF-8 fr_CH.UTF-8 fr_FR.UTF-8
NLSLINKS_it_IT.ISO8859-1 += it_CH.UTF-8 it_IT.UTF-8
NLSLINKS_ja_JP.eucJP = ja_JP.SJIS ja_JP.UTF-8
NLSLINKS_ru_RU.KOI8-R = ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5 ru_RU.UTF-8
NLSLINKS_uk_UA.KOI8-U = uk_UA.ISO8859-5 uk_UA.UTF-8
.else
# Above links can be installed from ports/shells/tcsh_nls

GENHDRS+= iconv.h
SRCS+=	iconv_stub.c

iconv.h: ${.CURDIR}/iconv_stub.h
	cp ${.CURDIR}/iconv_stub.h ${.TARGET}
.endif
.endif

NLSNAME= tcsh

.for catalog in ${CATALOGS}
NLS+=		${catalog:C/.*://}
NLSSRCDIR_${catalog:C/.*://}= ${TCSHDIR}/nls/${catalog:C/:.*//}
NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo charset set[0-9]*
.endfor

csh.1: tcsh.man
	cat ${.ALLSRC} > ${.TARGET}

build-tools: gethost

gethost: gethost.c sh.err.h tc.const.h sh.h
	@@rm -f ${.TARGET}
	${CC} -o gethost ${LDFLAGS} ${CFLAGS:C/-DHAVE_ICONV//} \
	    ${TCSHDIR}/gethost.c

tc.defs.c: gethost ${TCSHDIR}/host.defs
	@@rm -f ${.TARGET}
	@@echo "/* Do not edit this file, make creates it */" > ${.TARGET}
	./gethost ${TCSHDIR}/host.defs >> ${.TARGET}

ed.defns.h: ed.defns.c
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	@@echo '#ifndef _h_ed_defns' >> ${.TARGET}
	@@echo '#define _h_ed_defns' >> ${.TARGET}
	grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET}
	@@echo '#endif /* _h_ed_defns */' >> ${.TARGET}

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

tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	@@echo '#ifndef _h_tc_const' >> ${.TARGET}
	@@echo '#define _h_tc_const' >> ${.TARGET}
	${CC} -E ${CFLAGS:C/-DHAVE_ICONV//} ${.ALLSRC} -D_h_tc_const | \
	    grep 'Char STR' | \
	    sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
	    sort >> ${.TARGET}
	@@echo '#endif /* _h_tc_const */' >> ${.TARGET}

.include <bsd.prog.mk>
@


1.43.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:00:03 +0000
@
text
@d1 151
@


1.43.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 141
# $FreeBSD: releng/8.4/bin/csh/Makefile 232635 2012-03-07 01:31:29Z mp $
#	@@(#)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.

.include <bsd.own.mk>

TCSHDIR= ${.CURDIR}/../../contrib/tcsh
.PATH: ${TCSHDIR}

PROG=	csh
.if defined(RESCUE)
DFLAGS= -D_PATH_TCSHELL='"/rescue/${PROG}"'
.else
DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"'
.endif
CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS}
WARNS?=	1
SRCS=	sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
	sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
	sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
	sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h
SRCS+=	sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h
SRCS+=	tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \
	tw.comp.c tw.color.c
SRCS+=	ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \
	ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h
SRCS+=	tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
	tc.func.c tc.nls.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
	tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \
	tc.who.c tc.h
GENHDRS= ed.defns.h sh.err.h tc.const.h tc.defs.c
SRCS+=	${GENHDRS}

MLINKS= csh.1 tcsh.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/.

DPADD=	${LIBTERMCAP} ${LIBCRYPT}
LDADD=	-ltermcap -lcrypt

LINKS=	${BINDIR}/csh ${BINDIR}/tcsh

CLEANFILES= ${GENHDRS} gethost csh.1

.if ${MK_EXAMPLES} != "no"
FILESDIR= ${SHAREDIR}/examples/tcsh
FILES= complete.tcsh csh-mode.el
.endif

CATALOGS=	et:et_EE.ISO8859-15 \
		finnish:fi_FI.ISO8859-1 \
		french:fr_FR.ISO8859-1 \
		german:de_DE.ISO8859-1 \
		greek:el_GR.ISO8859-7 \
		italian:it_IT.ISO8859-1 \
		ja:ja_JP.eucJP \
		russian:ru_RU.KOI8-R \
		spanish:es_ES.ISO8859-1 \
		ukrainian:uk_UA.KOI8-U

NLSLINKS_fi_FI.ISO8859-1= fi_FI.ISO8859-15
NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \
		fr_CA.ISO8859-1 fr_CA.ISO8859-15 fr_CH.ISO8859-1 \
		fr_CH.ISO8859-15 fr_FR.ISO8859-15
NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \
		de_CH.ISO8859-15 de_DE.ISO8859-15
NLSLINKS_it_IT.ISO8859-1= it_CH.ISO8859-1 it_CH.ISO8859-15 it_IT.ISO8859-15
NLSLINKS_es_ES.ISO8859-1= es_ES.ISO8859-15

.if ${MK_NLS_CATALOGS} == "no" || defined(RESCUE)
CFLAGS+= -DNO_NLS_CATALOGS
.else
CFLAGS+= -DHAVE_ICONV
SRCS+=	iconv_stub.c
# Following links can be installed from ports/shells/tcsh_nls:
# NLSLINKS_de_DE.ISO8859-1 += de_AT.UTF-8 de_CH.UTF-8 de_DE.UTF-8
# NLSLINKS_el_GR.ISO8859-7 = el_GR.UTF-8
# NLSLINKS_es_ES.ISO8859-1 += es_ES.UTF-8
# NLSLINKS_et_EE.ISO8859-15 = et_EE.UTF-8
# NLSLINKS_fi_FI.ISO8859-1 += fi_FI.UTF-8
# NLSLINKS_fr_FR.ISO8859-1 += fr_BE.UTF-8 fr_CA.UTF-8 fr_CH.UTF-8 fr_FR.UTF-8
# NLSLINKS_it_IT.ISO8859-1 += it_CH.UTF-8 it_IT.UTF-8
# NLSLINKS_ja_JP.eucJP = ja_JP.SJIS ja_JP.UTF-8
# NLSLINKS_ru_RU.KOI8-R = ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5 ru_RU.UTF-8
# NLSLINKS_uk_UA.KOI8-U = uk_UA.ISO8859-5 uk_UA.UTF-8
.endif

NLSNAME= tcsh

.for catalog in ${CATALOGS}
NLS+=		${catalog:C/.*://}
NLSSRCDIR_${catalog:C/.*://}= ${TCSHDIR}/nls/${catalog:C/:.*//}
NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo charset set[0-9]*
.endfor

csh.1: tcsh.man
	cat ${.ALLSRC} > ${.TARGET}

build-tools: gethost

gethost: gethost.c sh.err.h tc.const.h sh.h
	@@rm -f ${.TARGET}
	${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${TCSHDIR}/gethost.c

tc.defs.c: gethost ${TCSHDIR}/host.defs
	@@rm -f ${.TARGET}
	@@echo "/* Do not edit this file, make creates it */" > ${.TARGET}
	./gethost ${TCSHDIR}/host.defs >> ${.TARGET}

ed.defns.h: ed.defns.c
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	@@echo '#ifndef _h_ed_defns' >> ${.TARGET}
	@@echo '#define _h_ed_defns' >> ${.TARGET}
	grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET}
	@@echo '#endif /* _h_ed_defns */' >> ${.TARGET}

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

tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	@@echo '#ifndef _h_tc_const' >> ${.TARGET}
	@@echo '#define _h_tc_const' >> ${.TARGET}
	${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | grep 'Char STR' | \
	    sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
	    sort >> ${.TARGET}
	@@echo '#endif /* _h_tc_const */' >> ${.TARGET}

.include <bsd.prog.mk>
@


1.42
log
@SVN rev 231990 on 2012-02-22 03:36:15Z by mp

Update to tcsh 6.18.01.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.41
log
@SVN rev 219061 on 2011-02-26 18:54:54Z by ume

When WITH_ICONV is set, use our in-tree iconv.
@
text
@d21 1
a21 1
WARNS?=	0
d119 1
a119 1
tc.defs.c: gethost ${.CURDIR}/host.defs
d122 1
a122 1
	./gethost ${.CURDIR}/host.defs >> ${.TARGET}
@


1.41.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.41.2.2
log
@SVN rev 232633 on 2012-03-07 01:26:24Z by mp

MFC r231990

Update to tcsh 6.18.01
@
text
@d21 1
a21 1
WARNS?=	1
d119 1
a119 1
tc.defs.c: gethost ${TCSHDIR}/host.defs
d122 1
a122 1
	./gethost ${TCSHDIR}/host.defs >> ${.TARGET}
@


1.41.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/bin/csh/Makefile 232633 2012-03-07 01:26:24Z mp $
@


1.41.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.41.2.2.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/bin/csh/Makefile 232633 2012-03-07 01:26:24Z mp $
@


1.41.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.41.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/bin/csh/Makefile 219061 2011-02-26 18:54:54Z ume $
@


1.40
log
@Fix spelling.
@
text
@d79 15
d95 4
a98 11
# Following links can be installed from ports/shells/tcsh_nls:
# NLSLINKS_de_DE.ISO8859-1 += de_AT.UTF-8 de_CH.UTF-8 de_DE.UTF-8
# NLSLINKS_el_GR.ISO8859-7 = el_GR.UTF-8
# NLSLINKS_es_ES.ISO8859-1 += es_ES.UTF-8
# NLSLINKS_et_EE.ISO8859-15 = et_EE.UTF-8
# NLSLINKS_fi_FI.ISO8859-1 += fi_FI.UTF-8
# NLSLINKS_fr_FR.ISO8859-1 += fr_BE.UTF-8 fr_CA.UTF-8 fr_CH.UTF-8 fr_FR.UTF-8
# NLSLINKS_it_IT.ISO8859-1 += it_CH.UTF-8 it_IT.UTF-8
# NLSLINKS_ja_JP.eucJP = ja_JP.SJIS ja_JP.UTF-8
# NLSLINKS_ru_RU.KOI8-R = ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5 ru_RU.UTF-8
# NLSLINKS_uk_UA.KOI8-U = uk_UA.ISO8859-5 uk_UA.UTF-8
d116 2
a117 1
	${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${TCSHDIR}/gethost.c
d145 2
a146 1
	${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | grep 'Char STR' | \
@


1.40.2.1
log
@SVN rev 232674 on 2012-03-07 22:19:43Z by mp

MFC r231990

Update to tcsh 6.18.01
@
text
@d21 1
a21 1
WARNS?=	1
d110 1
a110 1
tc.defs.c: gethost ${TCSHDIR}/host.defs
d113 1
a113 1
	./gethost ${TCSHDIR}/host.defs >> ${.TARGET}
@


1.40.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/bin/csh/Makefile 232674 2012-03-07 22:19:43Z mp $
@


1.40.14.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.40.14.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/bin/csh/Makefile 156891 2006-03-19 19:10:39Z ru $
@


1.40.12.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.40.10.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.40.10.2
log
@SVN rev 232635 on 2012-03-07 01:31:29Z by mp

MFC r231990

Update to tcsh 6.18.01
@
text
@d21 1
a21 1
WARNS?=	1
d110 1
a110 1
tc.defs.c: gethost ${TCSHDIR}/host.defs
d113 1
a113 1
	./gethost ${TCSHDIR}/host.defs >> ${.TARGET}
@


1.40.10.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/bin/csh/Makefile 232635 2012-03-07 01:31:29Z mp $
@


1.40.10.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.40.10.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/bin/csh/Makefile 156891 2006-03-19 19:10:39Z ru $
@


1.40.10.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.40.10.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.40.10.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.40.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.40.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.39
log
@Reimplementation of world/kernel build options.  For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by:	imp, jhb, kris, phk, ru (all bugs are mine)
@
text
@d80 1
a80 1
# Folloing links can be installed from ports/shells/tcsh_nls:
@


1.38
log
@Enable NLS catalog of csh(1).
The tcsh 6.14 uses libiconv to convert catalogs to appropriate charset
dynamically.  However, we don't have libiconv in our tree.  So, I made
some hack to load libiconv dynamically.  If libiconv is available, you
can use catalogs for more locales than the locales which catalog is
actually installed.
To use this feature, you need to symlink catalogs to appropriate
locales.  You can do this by installing ports/shells/tcsh_nls.

Reviewed by:	arch (no objection)
MFC after:	1 week
@
text
@d9 2
d50 1
a50 1
.if !defined(NO_EXAMPLES)
d75 1
a75 1
.if defined(NO_NLS_CATALOGS) || defined(RESCUE)
@


1.37
log
@Don't install examples of NO_EXAMPLES
@
text
@d73 18
d96 1
a96 1
NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo set[0-9]*
@


1.36
log
@Add new file (tc.nls.c) to the build.
@
text
@d48 1
d51 1
@


1.36.2.1
log
@MFC: Enable NLS catalog of csh(1).
The tcsh 6.14 uses libiconv to convert catalogs to appropriate charset
dynamically.  However, we don't have libiconv in our tree.  So, I made
some hack to load libiconv dynamically.  If libiconv is available, you
can use catalogs for more locales than the locales which catalog is
actually installed.
To use this feature, you need to symlink catalogs to appropriate
locales.  You can do this by installing ports/shells/tcsh_nls.

	bin/csh/Makefile:			1.38
	bin/csh/config.h:			1.13
	bin/csh/iconv.h:			1.1
	bin/csh/iconv_stub.c:			1.1
	contrib/tcsh/nls/C/charset:		1.1.1.1
	contrib/tcsh/nls/et/charset		1.1.1.1
	contrib/tcsh/nls/finnish/charset	1.1.1.1
	contrib/tcsh/nls/french/charset		1.1.1.1
	contrib/tcsh/nls/german/charset		1.1.1.1
	contrib/tcsh/nls/greek/charset		1.1.1.1
	contrib/tcsh/nls/italian/charset	1.1.1.1
	contrib/tcsh/nls/ja/charset		1.1.1.1
	contrib/tcsh/nls/pl/charset		1.1.1.1
	contrib/tcsh/nls/russian/charset	1.1.1.1
	contrib/tcsh/nls/spanish/charset	1.1.1.1
	contrib/tcsh/nls/ukrainian/charset	1.1.1.1

Approved by:	re (hrs)
@
text
@a70 18
.if defined(NO_NLS_CATALOGS) || defined(RESCUE)
CFLAGS+= -DNO_NLS_CATALOGS
.else
CFLAGS+= -DHAVE_ICONV
SRCS+=	iconv_stub.c
# Folloing links can be installed from ports/shells/tcsh_nls:
# NLSLINKS_de_DE.ISO8859-1 += de_AT.UTF-8 de_CH.UTF-8 de_DE.UTF-8
# NLSLINKS_el_GR.ISO8859-7 = el_GR.UTF-8
# NLSLINKS_es_ES.ISO8859-1 += es_ES.UTF-8
# NLSLINKS_et_EE.ISO8859-15 = et_EE.UTF-8
# NLSLINKS_fi_FI.ISO8859-1 += fi_FI.UTF-8
# NLSLINKS_fr_FR.ISO8859-1 += fr_BE.UTF-8 fr_CA.UTF-8 fr_CH.UTF-8 fr_FR.UTF-8
# NLSLINKS_it_IT.ISO8859-1 += it_CH.UTF-8 it_IT.UTF-8
# NLSLINKS_ja_JP.eucJP = ja_JP.SJIS ja_JP.UTF-8
# NLSLINKS_ru_RU.KOI8-R = ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5 ru_RU.UTF-8
# NLSLINKS_uk_UA.KOI8-U = uk_UA.ISO8859-5 uk_UA.UTF-8
.endif

d76 1
a76 1
NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo charset set[0-9]*
@


1.36.2.2
log
@MFC: tcsh 6.15.00.
@
text
@d76 1
a76 1
# Following links can be installed from ports/shells/tcsh_nls:
@


1.36.2.3
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/bin/csh/Makefile 177072 2008-03-11 22:12:58Z delphij $
@


1.36.2.2.2.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.35
log
@style.Makefile:
	Use WARNS?= instead of WARNS=
@
text
@d30 1
a30 1
	tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
@


1.34
log
@Temporarily turn off -Werror for these components.
@
text
@d19 1
a19 1
WARNS=	0
@


1.33
log
@Tweak a couple of utilities so they compile cleanly for /rescue. Mostly
path fixes.

Submitted by:	Tim Kientzle <kientzle@@acm.org>
@
text
@d19 1
a19 1
WARNS=	2
@


1.32
log
@Get this area compiling with the highest WARNS= that it works with.
Obsolete WFORMAT= junk also removed where possible.

OK'ed by:	obrien
Tested on:	sparc64, alpha, i386
@
text
@d13 3
d17 1
@


1.31
log
@Use
	cat ${.ALLSRC} > ${.TARGET}
rather than
	ln -sf ${.ALLSRC} ${.TARGET}
not to depends on absolute-path of symbolic links.

Commented by:  marcel, obrien, bde
@
text
@d15 1
a15 1
WARNS=	1
@


1.30
log
@Make this WARNS=1 as that is all we can do with GCC 3.3 -- too many
sized/unsigned comparisons.
@
text
@d76 1
a76 1
	ln -sf ${.ALLSRC} ${.TARGET}
@


1.29
log
@Remove WARNS and WFORMAT overrides.
@
text
@d15 1
@


1.28
log
@Reimplemented bsd.nls.mk using bsd.files.mk and bsd.links.mk.

Provided the (previously missing) dependency on source files
for intermediate .msg files.

Provided the default for NLSSRCDIR (defaults to .CURDIR).

Slightly changed the API: NLS should now list plain locale
names, without the .msg suffix.

When included from bsd.prog.mk, NLSNAME defaults to PROG.
@
text
@a14 2
WARNS=	0
WFORMAT=0
@


1.27
log
@Install complete.tcsh and csh-mode.el into ${SHAREDIR}/examples/tcsh.

PR:		misc/34800 (from Steven Grady)
Submitted by:	phantom (patch)
MFC after:	3 days
@
text
@a12 1
SUBDIR= nls
d47 28
@


1.26
log
@Lock down with WFORMAT=1 except those directories with unfixed warnings.
Tested on i386 and alpha.
@
text
@d46 3
@


1.25
log
@Default to WARNS=2.  Binary builds that cannot handle this must explicitly
set WARNS=0.

Reviewed by:	mike
@
text
@d17 1
@


1.24
log
@MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.23 2000/12/05 22:10:43 obrien Exp $
d16 1
@


1.23
log
@Change the spelling of `.' to `.' from .OBJDIR since `.' really is where
generated files land.  Also give precedence to generated files.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.22 2000/12/03 16:28:56 ache Exp $
a31 1
MAN1=	csh.1
@


1.22
log
@Remove ${DESTDIR} from _PATH_TCSHELL, it is call path, not install path
Add gethost to build-tools to help cross-building
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.21 2000/11/30 21:38:32 ache Exp $
d15 1
a15 1
CFLAGS+= -I${TCSHDIR} -I${.CURDIR} -I. ${DFLAGS}
@


1.21
log
@Upgrade to 6.10
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.20 2000/07/07 08:27:59 ache Exp $
d14 1
a14 1
DFLAGS=	-D_PATH_TCSHELL='"${DESTDIR}/bin/${PROG}"'  
d47 2
@


1.20
log
@restore tabs lost from prev commit

Asked-by:	bde
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.19 2000/07/06 22:05:41 ache Exp $
d19 1
a19 1
	sh.set.c sh.time.c sh.h sh.char.h sh.dir.h sh.proc.h
d29 1
a29 2
SRCS+=	tc.defs.c
GENHDRS= ed.defns.h sh.err.h tc.const.h
d43 1
a43 1
CLEANFILES= ${GENHDRS} csh.1
d48 9
d70 1
a70 1
	egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET}
d78 1
a78 1
	${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | egrep 'Char STR' | \
@


1.19
log
@curses -> termcap, mainly for purity and to indicate which functions family
really used
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.18 2000/06/11 03:25:59 ache Exp $
d39 2
a40 2
DPADD=  ${LIBTERMCAP} ${LIBCRYPT}
LDADD=  -ltermcap -lcrypt
@


1.18
log
@Activate Japanese NLS and KANJI support
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.17 2000/05/15 14:24:32 bde Exp $
d39 2
a40 2
DPADD=	${LIBNCURSES} ${LIBCRYPT}
LDADD=	-lncurses -lcrypt
@


1.17
log
@Don't forget to clean csh.1.

Fixed some style bugs.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.16 2000/05/05 08:12:11 jkoshy Exp $
a14 3
.if defined(WANT_KANJI)
DFLAGS+= -DWANT_KANJI
.endif
@


1.16
log
@Install a manual page for `tcsh(1)', for completeness.

Approved by:	obrien
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.15 2000/04/23 18:08:49 obrien Exp $
d33 2
d42 2
a43 2
DPADD+=		${LIBNCURSES} ${LIBCRYPT}
LDADD+=		-lncurses -lcrypt
d47 2
a50 4

GENHDRS+=	ed.defns.h tc.const.h sh.err.h
SRCS+=		${GENHDRS}
CLEANFILES+= ${GENHDRS}
@


1.15
log
@Pass "WANT_KANJI" from make.conf to the compiler.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.14 2000/04/20 08:57:59 ache Exp $
d35 1
@


1.14
log
@Activate NLS.
Optimize NLS by not wasting space copying the same .cat but use symbolic links
instead.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.13 2000/04/19 15:15:19 obrien Exp $
d9 1
a9 1
TCSHDIR=	${.CURDIR}/../../contrib/tcsh
d15 3
@


1.13
log
@Install /bin/tcsh also.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.12 2000/04/18 07:31:15 obrien Exp $
d13 1
@


1.12
log
@Upgrade csh.
@
text
@d1 1
a1 1
# $FreeBSD$
d37 2
@


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
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.10 1999/08/27 23:13:40 peter Exp $
d9 3
d13 16
a28 6
DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
CFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
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
d35 9
a43 1
CLEANFILES+=const.h errnum.h
d45 7
a51 1
const.h: errnum.h
d53 1
a53 1
errnum.h: err.c
d56 2
a57 2
	@@echo '#ifndef _h_sh_error' >> ${.TARGET}
	@@echo '#define _h_sh_error' >> ${.TARGET}
d59 1
a59 1
	@@echo '#endif /* _h_sh_error */' >> ${.TARGET}
d61 1
a61 1
const.h: const.c
d64 3
a66 1
	${CC} -E ${CFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
d69 1
@


1.11.2.1
log
@MFC: upgrade csh to tcsh.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.18 2000/06/11 03:25:59 ache Exp $
a8 3
TCSHDIR= ${.CURDIR}/../../contrib/tcsh
.PATH: ${TCSHDIR}

d10 6
a15 19
SUBDIR= nls
DFLAGS=	-D_PATH_TCSHELL='"${DESTDIR}/bin/${PROG}"'  
CFLAGS+= -I${TCSHDIR} -I${.CURDIR} -I. ${DFLAGS}
SRCS=	sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
	sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
	sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
	sh.set.c sh.time.c sh.h sh.char.h sh.dir.h sh.proc.h
SRCS+=	sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h
SRCS+=	tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \
	tw.comp.c tw.color.c
SRCS+=	ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \
	ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h
SRCS+=	tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
	tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
	tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \
	tc.who.c tc.h
SRCS+=	tc.defs.c
GENHDRS= ed.defns.h sh.err.h tc.const.h
SRCS+=	${GENHDRS}
a17 1
MLINKS= csh.1 tcsh.1
d22 1
a22 6
DPADD=	${LIBNCURSES} ${LIBCRYPT}
LDADD=	-lncurses -lcrypt

LINKS=	${BINDIR}/csh ${BINDIR}/tcsh

CLEANFILES= ${GENHDRS} csh.1
d24 1
a24 10
csh.1: tcsh.man
	ln -sf ${.ALLSRC} ${.TARGET}

ed.defns.h: ed.defns.c
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	@@echo '#ifndef _h_ed_defns' >> ${.TARGET}
	@@echo '#define _h_ed_defns' >> ${.TARGET}
	grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET}
	@@echo '#endif /* _h_ed_defns */' >> ${.TARGET}
d26 1
a26 1
sh.err.h: sh.err.c
d29 2
a30 2
	@@echo '#ifndef _h_sh_err' >> ${.TARGET}
	@@echo '#define _h_sh_err' >> ${.TARGET}
d32 1
a32 1
	@@echo '#endif /* _h_sh_err */' >> ${.TARGET}
d34 1
a34 1
tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
d37 1
a37 3
	@@echo '#ifndef _h_tc_const' >> ${.TARGET}
	@@echo '#define _h_tc_const' >> ${.TARGET}
	${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | egrep 'Char STR' | \
a39 1
	@@echo '#endif /* _h_tc_const */' >> ${.TARGET}
@


1.11.2.2
log
@MFC: curses -> termcap
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.11.2.1 2000/07/04 05:29:25 obrien Exp $
d39 2
a40 2
DPADD=  ${LIBTERMCAP} ${LIBCRYPT}
LDADD=  -ltermcap -lcrypt
@


1.11.2.3
log
@MFC: tabs
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.20 2000/07/07 08:27:59 ache Exp $
d39 2
a40 2
DPADD=	${LIBTERMCAP} ${LIBCRYPT}
LDADD=	-ltermcap -lcrypt
@


1.11.2.4
log
@MFC.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.11.2.3 2000/07/07 08:29:33 ache Exp $
d15 1
a15 1
CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS}
@


1.11.2.5
log
@MFC: 1.23: change the spelling of `.' to `.' from .OBJDIR
     1.22: remove ${DESTDIR} from _PATH_TCSHELL, it is call path
           add gethost to build-tools to help cross-building
     1.21: 6.10 changes
@
text
@d1 1
a1 1
# $FreeBSD$
d14 1
a14 1
DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"'
d19 1
a19 1
	sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h
d29 2
a30 1
GENHDRS= ed.defns.h sh.err.h tc.const.h tc.defs.c
d44 1
a44 1
CLEANFILES= ${GENHDRS} gethost csh.1
a48 11
build-tools: gethost

gethost: gethost.c sh.err.h tc.const.h sh.h
	@@rm -f ${.TARGET}
	${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${TCSHDIR}/gethost.c

tc.defs.c: gethost ${.CURDIR}/host.defs
	@@rm -f ${.TARGET}
	@@echo "/* Do not edit this file, make creates it */" > ${.TARGET}
	./gethost ${.CURDIR}/host.defs >> ${.TARGET}

d62 1
a62 1
	grep 'ERR_' ${.ALLSRC} | grep '^#define' >> ${.TARGET}
d70 1
a70 1
	${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | grep 'Char STR' | \
@


1.11.2.6
log
@MFC: update to version 6.10
@
text
@@


1.11.2.7
log
@MFC: MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.11.2.6 2001/03/05 05:46:11 obrien Exp $
d32 1
@


1.11.2.8
log
@MFC: Install complete.tcsh and csh-mode.el into ${SHAREDIR}/examples/tcsh.
@
text
@d1 1
a1 1
# $FreeBSD$
a42 3

FILESDIR= ${SHAREDIR}/examples/tcsh
FILES= complete.tcsh csh-mode.el
@


1.11.2.9
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/bin/csh/Makefile 90879 2002-02-19 00:36:40Z mp $
@


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.9.2.3
log
@Since `csh' in -current is `tcsh', link in a manual page for
`tcsh(1)', for completeness.

Approved by:	obrien
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.9.2.2 1999/12/10 13:03:00 sheldonh Exp $
a17 1
MLINKS= csh.1 tcsh.1
@


1.9.2.4
log
@Back out rev 1.9.2.3, which got committed to this branch by mistake.
@
text
@d1 1
a1 1
# $FreeBSD: src/bin/csh/Makefile,v 1.9.2.3 2000/05/05 08:07:27 jkoshy Exp $
d18 1
@


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 
@
