aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/awk
Commit message (Collapse)AuthorAgeFilesLines
* awk(1): use -version instead of -VYuri Pankov2020-06-131-8/+8
| | | | | | | | | | | | | | -V is OpenBSD specific, use -version instead. While here, fix issue reported by mandoc lint and drop nonexistent script(7) reference. PR: 247004 Reviewed by: 0mp, markj Differential Revision: https://reviews.freebsd.org/D25164 Notes: svn path=/head/; revision=362147
* Fix .depend files to work for build tools.Bryan Drewery2019-06-151-0/+1
| | | | | | | | | | This is somewhat of a follow-up to r335746. MFC after: 2 weeks Sponsored by: DellEMC Notes: svn path=/head/; revision=349062
* This should have been committed in r348511 with the awk update.Warner Losh2019-06-021-1/+1
| | | | | | | | It was in my tree, the build worked, but I committed from contrib/one-true-awk rather than the top level, so was omitted. Notes: svn path=/head/; revision=348515
* awk(1): Don't install tests at allKyle Evans2018-01-291-1/+1
| | | | | | | | | | | Tests were disconnected so that running `make check` in usr.bin/awk did not have any effect, but CI runs use installed tests. Fully disconnect tests/ from the build for the time being as a short term solutio Reported by: lwhsu Notes: svn path=/head/; revision=328550
* awk(1): Add necessary bits for connecting tests, but leave disconnectedKyle Evans2018-01-112-0/+39
| | | | | | | | | | | | The NetBSD test suite has 24 tests for awk, and we pass exactly 4 of them. Add the necessary pieces for interested parties to easily connect the tests and run them, but leave them disconnected for the time being. Some of these tests outright segfault in our awk, others just exhibit the wrong behavior. Notes: svn path=/head/; revision=327806
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Implement gawk multiple-arg extension to and, or, and xor.Warner Losh2017-09-141-6/+9
| | | | | | | | | | | | gawk allows multiple arguemnts to bit-wiste and, or and xor functions. Implement an arbitrary number of arguments for these functions. Also, use NULL in preference to 0 to match rest of file. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D12361 Notes: svn path=/head/; revision=323577
* Import the awk(1) manpage from OpenBSDBaptiste Daroussin2017-03-091-0/+794
| | | | | | | | | | | | As discussed during AsiaBSDcon devsummit, import the manpage from OpenBSD which is has been rewritten in mdoc(7) format making it readable by default with mandoc, it also has been extended by OpenBSD to cover all awk(1) options Obtained from: OpenBSD MFH: 1 week Notes: svn path=/head/; revision=314942
* Use SRCTOP to refer to awk source in contrib/awk and remove unnecessary ↵Enji Cooper2017-02-111-2/+2
| | | | | | | | | | | | | | | | AWKSRC prefix for maketab.c The former simplifies pathing in make/displayed output, whereas the latter was just unnecessarily superfluous since .PATH referenced the path to maketab.c earlier on in the Makefile. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313654
* WITH_META_MODE: Fix rebuilding maketab outside of build-tools.Bryan Drewery2016-06-141-2/+4
| | | | | | | | | | | | | | | | | | The bsd.dep.mk yacc targets rely on only the .c file getting a .meta file. However the previous code here relying on only the .h file meant that it would be generated with a .meta file. r301285 made it so that the .h file is never expected to get a .meta file. To keep this restriction in place add in an extra dependency on the .c file so that it is generated at this time. It's a hack but the best for the patterns we have at the moment for handling build-tools and side-effect-generated files. Reported by: Mark Millard Approved by: re (implicit) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=301884
* DIRDEPS_BUILD: Run the staged bootstrap-tools version of build-tools.Bryan Drewery2016-05-091-1/+1
| | | | | | | | | This avoids running target binaries. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=299289
* META_MODE: Don't rebuild build-tools targets during normal build.Bryan Drewery2016-04-141-1/+1
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=297997
* DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-20/+0
| | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* META MODE: Don't create .meta files when symlinking sources into the obj ↵Bryan Drewery2015-11-251-1/+1
| | | | | | | | | | | | | | directory. Tracking these leads to situations where meta mode will consider the file to be out of date if /bin/sh or /bin/ln are newer than the source file. There's no reason for meta mode to do this as make is already handling the rebuild dependency fine. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291320
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+40
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+40
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
|/ | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* Apply patches directly to sources. Their effect is as follows:Ruslan Ermilov2010-01-104-137/+0
| | | | | | | | | | | - Make one-true-awk respect locale's collating order in [a-z] bracket expressions, until a more complete fix (like handing BREs) is ready. - Don't require a space between -[fv] and its argument. Notes: svn path=/head/; revision=201989
* Regen diffs.Ruslan Ermilov2010-01-093-26/+17
| | | | Notes: svn path=/head/; revision=201957
* Update to a 26-Nov-2009 release.Ruslan Ermilov2010-01-091-2/+2
| | | | Notes: svn path=/head/; revision=201951
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Allow awk (the one true one!) to handle 64 files instead of just 20.John Birrell2008-03-271-1/+1
| | | | | | | | | | | | | | The current FreeBSD syscall generation script uses all 20 and I need another open file. It's a shame that something named as the 'one-true-awk' is so limited by an old denition like FOPEN_MAX when it could just make the file handling dynamic. This is done to avoid touching contrib sources on a vendor branch. Notes: svn path=/head/; revision=177655
* Now that we're way past our conversion from GNU awk to BWK awk, we don'tDavid E. O'Brien2008-02-281-7/+3
| | | | | | | need to primarily install as a non-conflicting name. Notes: svn path=/head/; revision=176641
* The AWK 23-Oct-2007 release includes fixes for FreeBSD PR's bin/104795David E. O'Brien2007-10-253-50/+1
| | | | | | | and bin/100443. Notes: svn path=/head/; revision=172962
* Increase inputFS buffer. awk will not accept some old scriptsXin LI2007-06-081-4/+13
| | | | | | | otherwise. Notes: svn path=/head/; revision=170423
* - Update for 2007/05/01 importRong-En Fan2007-06-052-5/+5
| | | | | | | | | Approved by: delphij (mentor) Nodded by: ru Tested by: make universe Notes: svn path=/head/; revision=170335
* Fix a bug converting a variable from the numeric type to a string.Ruslan Ermilov2006-10-252-1/+23
| | | | | | | | PR: bin/104795 MFC after: 3 days Notes: svn path=/head/; revision=163695
* Initial memory allocation for fields was off-by-one.Ruslan Ermilov2006-09-152-1/+19
| | | | | | | | PR: bin/100443 MFC after: 3 days Notes: svn path=/head/; revision=162319
* Don't require a space between -[fv] and its argument.Ruslan Ermilov2006-09-151-1/+44
| | | | | | | | PR: bin/86514 MFC after: 3 days Notes: svn path=/head/; revision=162318
* Add temporary patches to make one-true-awk respect locale's collating orderRuslan Ermilov2005-05-174-0/+103
| | | | | | | | | | | in [a-z] bracket expressions, until a more complete fix (like handing BREs) is ready. Prodded by: ache OK'ed by: tjr Notes: svn path=/head/; revision=146322
* UseJun Kuriyama2003-06-061-1/+1
| | | | | | | | | | | | cat ${.ALLSRC} > ${.TARGET} rather than ln -sf ${.ALLSRC} ${.TARGET} not to depends on absolute-path of symbolic links. Commented by: marcel, obrien, bde Notes: svn path=/head/; revision=115898
* For the bwk_20030314 version, we have to -DHAS_ISBLANK now.David E. O'Brien2003-03-171-1/+1
| | | | | | | Oh how I wish the author had accepted my "#ifndef isblank" patch instead. Notes: svn path=/head/; revision=112339
* BWK awk appears to work for world builds just fine now. We want to makeDavid E. O'Brien2002-05-101-2/+0
| | | | | | | | sparc64 the same as the other platforms -- so do it by moving the other platforms toward the sparc64. Notes: svn path=/head/; revision=96363
* Style.David E. O'Brien2002-04-101-3/+3
| | | | Notes: svn path=/head/; revision=94339
* Style.Ruslan Ermilov2002-04-091-7/+7
| | | | Notes: svn path=/head/; revision=94267
* Make this compile in a standalone environment.Ruslan Ermilov2002-04-091-3/+2
| | | | | | | | Tidy up CLEANFILES. Use built-in rules for building "maketab". Notes: svn path=/head/; revision=94266
* Use our auto-YACC'ing rules to do most of the work.David E. O'Brien2002-03-231-7/+3
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=93003
* To quote BDE: "the k part of awk should understand the ctype macros and notDavid E. O'Brien2002-03-061-4/+3
| | | | | | | | | need the -funsigned-char hack." Also add needed CLEANSFILE. Notes: svn path=/head/; revision=91760
* Simpler way to handling the names needed on the various platforms.David E. O'Brien2002-03-061-7/+4
| | | | Notes: svn path=/head/; revision=91758
* On the sparc64 platform we install the `1 true AWK' as "awk". On all otherDavid E. O'Brien2002-03-051-3/+10
| | | | | | | | | platforms we install as "nawk". At the moment Gawk is borked on sparc64, however BWK AWK works fine. Notes: svn path=/head/; revision=91707
* Switch to the One True AWK from Bell-Labs, away from GNU AWK.David E. O'Brien2001-10-301-0/+36
Notes: svn path=/head/; revision=85724