summaryrefslogtreecommitdiffstats
path: root/bin/sh/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Install /bin/sh safely. This allows a shell script to be usedru2004-03-181-0/+1
| | | | | | | to strip binaries by specifying it in the STRIPBIN environment variable honoured by install(1). MFC after: 3 days
* style.Makefile:johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-051-2/+2
|
* Removed duplicate y.tab.h from SRCS and CLEANFILES.ru2004-01-201-1/+1
|
* The is_name and is_in_name macros are FUBAR'ed.obrien2003-05-021-0/+2
| | | | | | Due to the use of signed vs. unsigned chars on our various platforms, one gets "warning: comparison is always true due to limited range of data type" from GCC 3.3.
* It is now safe to remove WARNS=0 and WFORMAT=0.mux2002-10-011-2/+0
| | | | Tested on: alpha, i386, sparc64
* Add back WARNS=0 and WFORMAT=0; gcc is finding nonexistent format stringtjr2002-10-011-0/+2
| | | | errors with %qd formats.
* Remove WARNS=0 and WFORMAT=0. The shell compiles cleanly at WARNS=2tjr2002-10-011-2/+0
| | | | | on at least i386. If there are warnings on other archs, I'd rather hear about them than pretend they didn't exist.
* Lock down with WFORMAT=1 except those directories with unfixed warnings.kris2002-02-041-0/+1
| | | | Tested on i386 and alpha.
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-0/+1
| | | | | | set WARNS=0. Reviewed by: mike
* Remove the printf builtin command from sh(1), which command is notknu2001-11-201-3/+2
| | | | | | | | | | | | used so often that it's worth keeping it as a builtin. Now that all the printf invocations from within the system startup scripts, we can safely remove it. Urged by: sheldonh :) No MFC is planned so far because it may break compatibility and violate POLA.
* Make test(1) a builtin command of our sh(1) for efficiency. Theknu2001-11-171-2/+4
| | | | | | | | | | | binary size increase is 3,784 bytes (about 0.6%). I don't drop the printf builtin while I'm here because some /etc/rc.* scripts seem to use it before mounting /usr where printf(1) resides. Reviewed by: arch (sheldonh) Inspired by: NetBSD, ksh Clued by: ume (on how the printf builtin is used)
* Improve shell documentation:sheldonh1999-09-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Added a `build-tools' target for internal tools.bde1998-07-071-4/+3
| | | | | | Removed explicit dependencies of foo.o on foo.c. These were mainly placeholders for comments about missing dependencies of tools objects on headers. This problem needs to be handled more generally.
* Backed out previous backout. Put y.tab.h back in SRCS.bde1998-05-061-10/+6
|
* Backed out previous commit. It was tested, but not for the case wherebde1998-05-051-4/+8
| | | | | a separate object tree doesn't exist. Crufty makefiles will have to put y.tab.h in SRCS so that we know not to create foo.h from foo.y.
* Fixed races in `make -jN' using new yacc rules.bde1998-05-041-8/+4
|
* Backed out most of rev.1.19 (explicit dependencies of object filesbde1998-04-261-19/+1
| | | | on generated headers). This is now handled generally in bsd.prog.mk.
* Changes to support full make parallelism (-j<n>) in the worldjkh1997-10-051-6/+9
| | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
* Restored clobbered parts of rev.1.15 (build intermediate object filesbde1997-08-251-2/+14
| | | | for tools).
* Remove y.tab.h from the beforedepend target. Also add asteve1997-05-211-2/+3
| | | | | | rule that shows the dependency of arith_lex.[co] on y.tab.h. Suggested by: Bruce Evans <bde@zeta.org.au>
* Add explicit y.tab.h rule so that 'make depend clean all' doessteve1997-05-191-2/+4
| | | | not fail with an "don't know how to make y.tab.h" error.
* Miscellaneous sorting and addition of rules for object files thatsteve1997-05-191-11/+25
| | | | | | depend on generated headers. Reviewed by: Bruce Evans <bde@zeta.org.au>
* Shamelessly pilfer most of NetBSD's Makefile so that thesteve1997-04-281-28/+16
| | | | | | | | problem with 'make -j n' and no .depend file goes away. I think Bruce mentioned this somewhere on one of the mailing lists. Obtained from: NetBSD
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Build intermediate object files for mkinit, mknodes and mksyntaxbde1996-10-251-6/+19
| | | | | | | | so that simple regresssion tests based on `cmp' work. mkdep still doesn't work right for these tools. They should probably be in separate directories. Sorted dependencies.
* oops, I didn't mean for the unconditional DEBUG code to go in, it's beenpeter1996-09-011-1/+3
| | | | | off in FreeBSD for some time. I realised this a few seconds after the commit started..
* Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is apeter1996-09-011-38/+26
| | | | | | | | | | | | | | merge of parallel duplicate work by Steve Price and myself. :-] There are some changes to the build that are my fault... mkinit.c was trying (poorly) to duplicate some of the work that make(1) is designed to do. The Makefile hackery is my fault too, the depend list was incomplete because of some explicit OBJS+= entries, so mkdep wasn't picking up their source file #includes. This closes a pile of /bin/sh PR's, but not all of them.. Submitted by: Steve Price <steve@bonsai.hiwaay.net>, peter
* Bring in my changes for removing the pestilent obj links (unless youjkh1996-06-241-2/+2
| | | | | really want them) from /usr/src. This is the final version of the patches, incorporating the feedback I've received from -current.
* Backup yacc changes.phk1996-06-021-4/+3
|
* Use new yacc rules. (I'm fixing the tree as fast as I can :-)phk1996-05-301-4/+5
|
* Fix the borokeness that crept in with rev 1.10 of parser.c, the shjoerg1996-02-031-1/+4
| | | | | | | | didn't correctly start background jobs anymore. Strange that nobody was complaining... Add a dummy target for `builtins' in the Makefile, to prevent it from attempting to build this file by compiling builtins.c. :-/
* Make the shell handle a null command in a &&/|| sequence correctly.joerg1995-08-271-1/+3
| | | | | | | | | | | | | The && and || tokens do also terminate a command, not only the newline. While i was at it, disabled trace code by default, it served no good purpose since it required the use of a debugger anyway to be turned on. Instead, placed a hint in the Makefile on how to turn it on. This makes the shell ~ 10 % faster and ~ 4 KB smaller. :) Pointed out by: jan@physik.TU-Berlin.DE (Jan Riedinger)
* libcompat removedache1994-10-021-3/+3
|
* Added $Id$dg1994-09-241-0/+1
|
* Add dependencies on libraries to DPADD. Someday this should be donebde1994-08-281-0/+1
| | | | | | automagically. -lfoo has to be right to work, but ${LIBFO0} is too easy to forget or misspell; nothing checks it and it should be different for shared libraries.
* Touch init.c after making it in case mkinit refused to touch it after notbde1994-08-211-0/+1
| | | | | changing it. mkinit's attempted smartness about timestamps is mismatched with the makefile. init.o is compiled _twice_ the first time it is made...
* Need ${LDFLAGS} one more place.rgrimes1994-05-301-1/+1
|
* Need to sue ${LDFLAGS} when building local binaries so they get builtrgrimes1994-05-291-4/+4
| | | | static if ${NOSHARED}==YES. This makes it easier to bootstrap a system.
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+49
OpenPOWER on IntegriCloud