aboutsummaryrefslogtreecommitdiff
path: root/bin/ls/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* bin: Remove ancient SCCS tags.Warner Losh2023-11-271-1/+0
| | | | | | | | 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
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Now that we have MK_LS_COLORS, we don't need RELEASE_CRUNCH check here.Warner Losh2019-07-151-2/+1
| | | | | | | | | The RELEASE_CRUNCH check is redundant here. We don't need it for releases anymore, and picobsd can control this more directly without making it a special case. Notes: svn path=/head/; revision=349990
* Convert ls(1) to not use libxo(3)Conrad Meyer2018-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | libxo imposes a large burden on system utilities. In the case of ls, that burden is difficult to justify -- any language that can interact with json output can use readdir(3) and stat(2). Logically, this reverts r291607, r285857, r285803, r285734, r285425, r284494, r284489, r284252, and r284198. Kyua tests continue to pass (libxo integration was entirely untested). Reported by: many Reviewed by: imp Discussed with: manu, bdrewery Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D13959 Notes: svn path=/head/; revision=328100
* Add HAS_TESTS to all Makefiles that are currently using theEnji Cooper2017-08-021-0/+1
| | | | | | | | | `SUBDIR.${MK_TESTS}+= tests` idiom. This is a follow up to r321912. Notes: svn path=/projects/make-check-sandbox/; revision=321914
* Convert traditional ${MK_TESTS} conditional idiom for including testEnji Cooper2017-08-021-3/+1
| | | | | | | | | | | | | | directories to SUBDIR.${MK_TESTS} idiom This is being done to pave the way for future work (and homogenity) in ^/projects/make-check-sandbox . No functional change intended. MFC after: 1 weeks Notes: svn path=/head/; revision=321912
* Explicitly add unmarked bin/ binaries to the runtime package.Glen Barber2016-02-091-0/+1
| | | | | | | | | | | 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 Notes: svn path=/projects/release-pkg/; revision=295439
* Add initial testcases for bin/lsEnji Cooper2015-09-281-0/+4
| | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288330
* Upgrade libxo to 0.4.5.Marcel Moolenaar2015-08-241-1/+1
| | | | | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo Notes: svn path=/head/; revision=287111
* Since r284198, ls(1) just always depends libxo(3), not only in case ofMarius Strobl2015-07-121-2/+2
| | | | | | | MK_LS_COLORS or !RELEASE_CRUNCH. Notes: svn path=/head/; revision=285425
* Convert ls(1) to use libxo(3).Marcel Moolenaar2015-06-101-1/+1
| | | | | | | | Obtained from: Phil Shafer <phil@juniper.net> Sponsored by: Juniper Networks, Inc. Notes: svn path=/head/; revision=284198
* Convert bin/ to LIBADD, reduce overlinking allow to build all components asBaptiste Daroussin2014-11-251-4/+2
| | | | | | | static Notes: svn path=/head/; revision=275028
* Replace all uses of libncurses and libtermcap with their wide characterBrooks Davis2014-07-171-2/+2
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=268804
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* Add build opton MK_LS_COLORS to control whether ls(1) supports colorsMarcel Moolenaar2012-05-191-1/+4
| | | | | | | | | | (and thus needs to depend on libtermcap). Embedded systems may not want or need colors. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=235655
* Use humanize_number(3).Pawel Jakub Dawidek2004-05-251-2/+2
| | | | | | | Reminded by: jhb Notes: svn path=/head/; revision=129719
* Get this area compiling with the highest WARNS= that it works with.Mark Murray2003-06-131-2/+0
| | | | | | | | | | Obsolete WFORMAT= junk also removed where possible. OK'ed by: obrien Tested on: sparc64, alpha, i386 Notes: svn path=/head/; revision=116282
* Teach "ls -Z" to use the policy-agnostic MAC label interfaces ratherRobert Watson2002-10-241-1/+1
| | | | | | | | | | | | | | than the LOMAC-specific interfaces for listing MAC labels. This permits ls to view MAC labels in a manner similar to getfmac, when ls is used with the -l argument. Next generation LOMAC will use the MAC Framework so should "just" work with this and other policies. Not the prettiest code in the world, but then, neither is ls(1). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105832
* Correct inadvertent style botches in previous commit.Kris Kennaway2002-02-041-2/+2
| | | | Notes: svn path=/head/; revision=90167
* Lock down with WFORMAT=1 except those directories with unfixed warnings.Kris Kennaway2002-02-041-0/+2
| | | | | | | Tested on i386 and alpha. Notes: svn path=/head/; revision=90166
* WARNS=4 fixes, plus a healthy dose of fixes inspired by lint.Mark Murray2002-02-031-1/+0
| | | | Notes: svn path=/head/; revision=90150
* Fixed style bug (unsorting of SRCS) in rev.1.15.Bruce Evans2001-12-291-1/+1
| | | | Notes: svn path=/head/; revision=88672
* Fixed style bugs in revs. 1.6, 1.10 and 1.12.Bruce Evans2001-12-291-3/+2
| | | | Notes: svn path=/head/; revision=88671
* Fixed missing DPADD and disordered LDADD in rev.1.17Bruce Evans2001-12-291-1/+2
| | | | | | | | | Fixed setting of WARNS in rev.1.16. Options should normally be set using using "?=", not using "=", so that the setting is easy to override on the command line, and setting WARNS to 0 should not be an exception. Notes: svn path=/head/; revision=88670
* Add a new flag, -h which when combined with the -l option causesJosef Karthauser2001-12-281-0/+1
| | | | | | | | | | | file sizes to be displayed with unit suffixes; Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the number of digits to three or less. Submitted by: nik Notes: svn path=/head/; revision=88591
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyDavid E. O'Brien2001-12-041-0/+1
| | | | | | | | | set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87323
* Add LOMAC options (the "Z" flag in both cases) to display extra informationBrian Feldman2001-11-261-1/+1
| | | | | | | | | in ls(1) and ps(1). Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=86922
* Drop support for -DRELEASE_BUILD_FIXIT and -DCRUNCHED_BINARY inRuslan Ermilov2001-04-031-1/+1
| | | | | | | ${CFLAGS}. The only supported method thus is -DRELEASE_CRUNCH. Notes: svn path=/head/; revision=75126
* Switch over to using the new fflagstostr and strtofflags library calls.Josef Karthauser2000-06-171-2/+1
| | | | Notes: svn path=/head/; revision=61749
* Don't use ncurses, use termcapAndrey A. Chernov2000-06-051-1/+2
| | | | | | | Add DPADD Notes: svn path=/head/; revision=61288
* Disable colour support in ls when building the fixit floppy, and makeJosef Karthauser2000-06-051-0/+2
| | | | | | | a note of it in the release Makefile. Notes: svn path=/head/; revision=61269
* * Re-implement colour support using termcap's AF and AB capabilitiesJosef Karthauser2000-06-051-0/+3
| | | | | | | | | | | | | | | | to manage the ANSI colour sequences. Colour support is disabled unless the TERM environment variable references a valid termcap. * Allow optional compilation of the colour support in the Makefile, defaulting to yes. This allows us to switch it off for fixit floppies and other mediums where space is an issue and the extra bloat of statically linking with ncurses isn't acceptable. * Display a warning if colour is requested with '-G' but support for it isn't compiled in. Notes: svn path=/head/; revision=61268
* Revert part of the last commit, remove {g|s}etflags from the libcJosef Karthauser2000-02-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically named for a library interface with such specific functionality. Also the api that they use, whilst ok for private use, isn't good enough for a libc function. Additionally there were complications with the build/install-world process. It depends heavily upon xinstall, which got broken by the change in api, and caused bootstrap problems and general mayhem. There is work in progress to address future problems that may be caused by changes in install-chain tools, and better names for {g|s}etflags can be derived when some future program requires them. For now the code has been left in src/lib/libc/gen (it started off in src/bin/ls). It's important to provide library functions for manipulating file flag strings if we ever want this interface to be adopted outside of the source tree, but now isn't necessarily the right moment with 4.0-release just around the corner. Approved: jkh Notes: svn path=/head/; revision=57003
* Historically file flags (schg, uschg, etc) have been converted fromJosef Karthauser2000-01-271-2/+0
| | | | | | | | | | | | | | | | | | | | string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags. Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc. There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags. The manual page could probably be improved upon ;) Notes: svn path=/head/; revision=56692
* Added missing DPADD's. Removed unrequired SRCS's.Josef Karthauser2000-01-011-0/+1
| | | | | | | Obtained from: bde Notes: svn path=/head/; revision=55302
* Moved flags_to_string and string_to_flags into libutil. It's used inJosef Karthauser1999-12-301-1/+3
| | | | | | | many places nowadays. Notes: svn path=/head/; revision=55270
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50471
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Added $Id$David Greenman1994-09-241-0/+1
| | | | Notes: svn path=/head/; revision=3044
* BSD 4.4 Lite bin SourcesRodney W. Grimes1994-05-261-0/+6
Notes: svn path=/head/; revision=1556