History log of /freebsd-current/bin/csh/Makefile
Revision Date Author Comments
# dcb65c5a 27-May-2024 Emmanuel Vadot <manu@FreeBSD.org>

csh: Remove hardlink /.cshrc

Remove this historical artifact.
csh will try to use /.csrch if the user has no home directory defined which
is rather unlikely (To be exact if the concatenation of $HOME and "/.cshrc"
fail which is the same thing).

Also, with this change pkg will happily handle 3way merge for /root/.cshrc

Differential Revision: https://reviews.freebsd.org/D45382
Reviewed by: emaste, imp
Sponsored by: Beckhoff Automation GmbH & Co. KG


# a6d8dcb0 27-Mar-2024 Stephen J. Kiernan <stevek@FreeBSD.org>

csh: Use HOST_CC when compiling hostprog used by csh build

The "gethost" program should be built with the host compiler.

Obtained from: Juniper Networks, Inc.
Reviewed by: sjg
Differential Revision: https://reviews.freebsd.org/D44537


# 90aea514 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# a6ed8c95 16-Nov-2023 Thomas Eberhardt <sneakywumpus@gmail.com>

Fix /root permissions after 'make installworld'

According to /etc/mtree/BSD.root.dist /root should have
0750 permissions, but the build target 'make installworld'
changes these to 0755.

This is caused by the installation of the configuration
files of sh(1) and csh(1).

Correct this by specifying the correct default /root permissions.

PR: 273342
Reviewed by: jilles
Approved by: jilles
MFC after: 2 weeks
Differential Revision:https://reviews.freebsd.org/D42395


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 8fe4f8f7 20-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Fix building host tools for host

Several makefile depend on tools built for host.
At least when using DIRDEPS_BUILD we can build these for the
pseudo machine "host" to facilitate building on older host versions.

Ideally we would build these tools in their own directories to avoid
building more than needed.

For now, setting an appropriate default for BTOOLSPATH will suffice

Reviewed by: stevek
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D39708


# 67d2aaf0 22-Nov-2022 Ed Maste <emaste@FreeBSD.org>

csh: install hard link with same mode as target

Previously when using NO_ROOT we recorded METALOG entries for the /.cshrc
hard link with a different file mode than the link target, which is not
permitted.

We cannot just set LINKMODE here as it would also apply to the hard link
for the tcsh binary.

Reviewed by: brooks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37499


# 49912693 15-Dec-2021 Emmanuel Vadot <manu@FreeBSD.org>

pkgbase: Create a FreeBSD-csh package

Now that root uses /bin/sh as the default shell no need to have csh part
of runtime.
Put it in its own package.

MFC after: never
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33471


# c63c5ab0 15-Jun-2019 Bryan Drewery <bdrewery@FreeBSD.org>

Fix .depend files to work for build tools.

This is somewhat of a follow-up to r335746.

MFC after: 2 weeks
Sponsored by: DellEMC


# 94ec7ec7 29-Aug-2018 Brad Davis <brd@FreeBSD.org>

Finish moving dot.cshrc and dot.profile to bin/csh/ and bin/sh/.

Approved by: re (gjb), will (mentor)
Differential Revision: https://reviews.freebsd.org/D16770


# b4d1ec6c 28-Aug-2018 Brad Davis <brd@FreeBSD.org>

Fix the install of /root/.login missed as part of r337849.

Approved by: re (rgrimes)


# 3349f8bb 15-Aug-2018 Brad Davis <brd@FreeBSD.org>

Revert parts of r337849 and r337857

This fixes the build and I will redo these changes as part of a future review
that organizes them differently. The way I tried to do it here could be done
better. Sorry for the noise.

Approved by: will (mentor)
Differential Revision: https://reviews.freebsd.org/D16737


# 1da0bddb 15-Aug-2018 Brad Davis <brd@FreeBSD.org>

Fix build after r337849

This moves the symlink creation to after where the files are installed.

This also inverts the shell change so that it only happens if MK_TCSH is on.

Approved by: will (mentor)
Differential Revision: https://reviews.freebsd.org/D16725


# b26c7f7f 15-Aug-2018 Brad Davis <brd@FreeBSD.org>

Move all sh and csh files into bin/sh/ or bin/csh/

This simplifies pkgbase by migrating these to CONFS so they are properly
tagged as config files.

Approved by: will (mentor)
Differential Revision: https://reviews.freebsd.org/D16708


# 96a0acc4 27-Jun-2018 Bryan Drewery <bdrewery@FreeBSD.org>

Don't use CCACHE for linking.

MFC after: 2 weeks
Sponsored by: Dell EMC


# caf42d81 04-Mar-2017 Enji Cooper <ngie@FreeBSD.org>

bin: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after: 1 month
Sponsored by: Dell EMC Isilon


# 45e1479f 14-Jun-2016 Bryan Drewery <bdrewery@FreeBSD.org>

WITH_META_MODE: Fix bin/csh rebuilding tc.const.h

This is the same issue as r297997, but was missed in it.

The WARNS value changes between 'build-tools' (MK_WARNS=no) and
'everything' resulting in a rebuild of this file.

Approved by: re (implicit)
Sponsored by: EMC / Isilon Storage Division


# 29df9f6b 09-May-2016 Bryan Drewery <bdrewery@FreeBSD.org>

DIRDEPS_BUILD: Run the staged bootstrap-tools version of build-tools.

This avoids running target binaries.

Sponsored by: EMC / Isilon Storage Division


# d1dd034d 14-Apr-2016 Bryan Drewery <bdrewery@FreeBSD.org>

META_MODE: Don't rebuild build-tools targets during normal build.

This avoids 'build command changed' due to CFLAGS/CC changes during the
normal build. Without this the build-tools targets end up rebuilding
for the *target* rather than keeping the native versions built in
build-tools.

Sponsored by: EMC / Isilon Storage Division


# 46a0387a 24-Mar-2016 Bryan Drewery <bdrewery@FreeBSD.org>

CCACHE_BUILD: Don't use ccache when generating some files with CC -E.

At least for ncurses this fixes a build error due to it trying to run
'ccache --version' to work around a gcc 5 bug using the fix in r287205.

Sponsored by: EMC / Isilon Storage Division


# ac2875fa 09-Feb-2016 Glen Barber <gjb@FreeBSD.org>

Explicitly add unmarked bin/ binaries to the runtime package.
Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate
package, which requires pre-install/post-install scripts, to be
added later.

Sponsored by: The FreeBSD Foundation


# f408f604 03-Feb-2016 Bryan Drewery <bdrewery@FreeBSD.org>

Don't link /usr/share/nls/de_DE.UTF-8/tcsh.cat to itself.

Sponsored by: EMC / Isilon Storage Division


# e4b59b10 03-Feb-2016 Hajimu UMEMOTO <ume@FreeBSD.org>

The charset of NLS catalogs were converted to UTF-8
since r231990.


# 7a37b5fc 16-Jan-2015 Will Andrews <will@FreeBSD.org>

Add a ${CP} alias for copying files in the build.

Some users build FreeBSD as non-root in Perforce workspaces. By default,
Perforce sets files read-only unless they're explicitly being edited.
As a result, the -f argument must be used to cp in order to override the
read-only flag when copying source files to object directories. Bare use of
'cp' should be avoided in the future.

Update all current users of 'cp' in the src tree.

Reviewed by: emaste
MFC after: 1 week
Sponsored by: Spectra Logic


# 12cd1730 25-Nov-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Convert bin/ to LIBADD, reduce overlinking allow to build all components as
static


# 76479f1d 18-Sep-2014 Will Andrews <will@FreeBSD.org>

Fix incremental builds involving non-root users with read-only source files.

Makefiles should not assume that source files can be overwritten. This is the
common case for Perforce source trees.

This is a followup commit to r211243 in the same vein.

MFC after: 1 month
Sponsored by: Spectra Logic
MFSpectraBSD: r1036319 on 2014/01/29, r1046711 on 2014/03/06


# 80189b3b 17-Jul-2014 Brooks Davis <brooks@FreeBSD.org>

Replace all uses of libncurses and libtermcap with their wide character
variants. This allows usable file system images (i.e. those with both a
shell and an editor) to be created with only one copy of the curses library.

Exp-run: antoine
PR: 189842
Discussed with: bapt
Sponsored by: DARPA, AFRL


# c6063d0d 05-May-2014 Warner Losh <imp@FreeBSD.org>

Use src.opts.mk in preference to bsd.own.mk except where we need stuff
from the latter.


# 35bb448c 26-Feb-2011 Hajimu UMEMOTO <ume@FreeBSD.org>

When WITH_ICONV is set, use our in-tree iconv.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# effd5e76 19-Mar-2006 Ruslan Ermilov <ru@FreeBSD.org>

Fix spelling.


# e1fe3dba 17-Mar-2006 Ruslan Ermilov <ru@FreeBSD.org>

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)


# f45c0422 18-Feb-2006 Hajimu UMEMOTO <ume@FreeBSD.org>

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


# 670f8414 03-Aug-2005 Poul-Henning Kamp <phk@FreeBSD.org>

Don't install examples of NO_EXAMPLES


# 099f08ce 24-Apr-2005 Mark Peek <mp@FreeBSD.org>

Add new file (tc.nls.c) to the build.


# c8edef9f 23-Feb-2004 Johan Karlsson <johan@FreeBSD.org>

style.Makefile:
Use WARNS?= instead of WARNS=


# 08cbb1d1 10-Jul-2003 Alexander Kabaev <kan@FreeBSD.org>

Temporarily turn off -Werror for these components.


# 6d1b4a47 29-Jun-2003 Gordon Tetlow <gordon@FreeBSD.org>

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

Submitted by: Tim Kientzle <kientzle@acm.org>


# eac4bdcc 13-Jun-2003 Mark Murray <markm@FreeBSD.org>

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


# 3a624f5e 06-Jun-2003 Jun Kuriyama <kuriyama@FreeBSD.org>

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

Commented by: marcel, obrien, bde


# be8930b3 02-May-2003 David E. O'Brien <obrien@FreeBSD.org>

Make this WARNS=1 as that is all we can do with GCC 3.3 -- too many
sized/unsigned comparisons.


# 317aee97 24-Jul-2002 Mark Peek <mp@FreeBSD.org>

Remove WARNS and WFORMAT overrides.


# 8479adc1 01-Jul-2002 Ruslan Ermilov <ru@FreeBSD.org>

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.


# 90e0035c 11-Feb-2002 Mark Peek <mp@FreeBSD.org>

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


# afe781fa 03-Feb-2002 Kris Kennaway <kris@FreeBSD.org>

Lock down with WFORMAT=1 except those directories with unfixed warnings.
Tested on i386 and alpha.


# a7482907 03-Dec-2001 David E. O'Brien <obrien@FreeBSD.org>

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

Reviewed by: mike


# 6c7d684c 27-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

MAN[1-9] -> MAN.


# a8e642f5 05-Dec-2000 David E. O'Brien <obrien@FreeBSD.org>

Change the spelling of `.' to `.' from .OBJDIR since `.' really is where
generated files land. Also give precedence to generated files.


# bdc45483 03-Dec-2000 Andrey A. Chernov <ache@FreeBSD.org>

Remove ${DESTDIR} from _PATH_TCSHELL, it is call path, not install path
Add gethost to build-tools to help cross-building


# e754e5f3 30-Nov-2000 Andrey A. Chernov <ache@FreeBSD.org>

Upgrade to 6.10


# c8ac461f 07-Jul-2000 Andrey A. Chernov <ache@FreeBSD.org>

restore tabs lost from prev commit

Asked-by: bde


# 7cc55b50 06-Jul-2000 Andrey A. Chernov <ache@FreeBSD.org>

curses -> termcap, mainly for purity and to indicate which functions family
really used


# e1eb1729 10-Jun-2000 Andrey A. Chernov <ache@FreeBSD.org>

Activate Japanese NLS and KANJI support


# d94edef5 15-May-2000 Bruce Evans <bde@FreeBSD.org>

Don't forget to clean csh.1.

Fixed some style bugs.


# 54e00925 05-May-2000 Joseph Koshy <jkoshy@FreeBSD.org>

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

Approved by: obrien


# c22ae8f6 23-Apr-2000 David E. O'Brien <obrien@FreeBSD.org>

Pass "WANT_KANJI" from make.conf to the compiler.


# 43cf5ff9 20-Apr-2000 Andrey A. Chernov <ache@FreeBSD.org>

Activate NLS.
Optimize NLS by not wasting space copying the same .cat but use symbolic links
instead.


# 77f2a34f 19-Apr-2000 David E. O'Brien <obrien@FreeBSD.org>

Install /bin/tcsh also.


# 325c70b7 18-Apr-2000 David E. O'Brien <obrien@FreeBSD.org>

Upgrade csh.


# c644db6a 08-Sep-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

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


# 2a456239 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 242fa23c 07-Aug-1997 Steve Price <steve@FreeBSD.org>

More $@ -> ${.TARGET} that I missed earlier.


# 380fdd7d 07-Aug-1997 Steve Price <steve@FreeBSD.org>

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

Obtained from: similar changes in NetBSD


# c4694019 01-Jul-1997 Bruce Evans <bde@FreeBSD.org>

Import Lite2's src/bin. All files in src/bin are off the vendor branch,
so this doesn't change the active versions.


# b97fa2ef 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

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.


# 89730b29 23-Sep-1994 David Greenman <dg@FreeBSD.org>

Added $Id$


# db6ec199 07-Aug-1994 Jordan K. Hubbard <jkh@FreeBSD.org>

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:


# 94d44938 05-Aug-1994 Garrett Wollman <wollman@FreeBSD.org>

Fix some dependency bobbles.


# 67c22e71 05-Aug-1994 Garrett Wollman <wollman@FreeBSD.org>

Fix makefiles for our macros.


# 4b88c807 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite bin Sources