aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/mk
Commit message (Collapse)AuthorAgeFilesLines
* mk: provide a mechanism to default to `rc`Dan Cross2021-10-051-0/+2
| | | | | | | | | | | For cross-compiling plan9 from Unix, provide a way to force `mk` to use `rc` instead of `sh` without setting `MKSHELL` in individual `mkfile`s. If the environment variable `FORCERCFORMK` is set, `mk` will default to using `rc`, not `sh`. Signed-off-by: Dan Cross <cross@gajendra.net>
* all: update for new MIT licenseRuss Cox2021-03-231-24/+18
| | | | | | | | | | | | | | | | | | | | | | | | On March 23, 2021, Nokia transferred the copyrights in the Plan 9 software to the Plan 9 Foundation, which relicensed them under the MIT license. This commit updates the Plan 9 from User Space license to reflect the new base license. The vast majority of the contributions beyond the base Plan 9 set were by me, many of them explicitly under an MIT license. Those are all under the new MIT license now as well. The port of mk to Unix was taken from Inferno via Vita Nuova and had been made available under GPL, but Vita Nuova has relicensed Inferno under the MIT license as well, to match the new Plan 9 license. Michael Teichgraber contributed src/lib9/zoneinfo.c explicitly under the Lucent Public License but has agreed to change the contribution to the MIT license now used in the rest of the distribution. There remain a few exceptions, most notably fonts. See the root LICENSE file for full details. The only mention of the Lucent Public License in the whole tree now is in the LICENSE file, explaining the history.
* mk: fix for Unix buildRuss Cox2021-03-231-2/+2
|
* mk: replace overlapping strcpy with memmoveRuss Cox2020-05-171-1/+2
| | | | Found by ASAN.
* mk: support Big Archive Format under AIXBen Huntsman2020-05-071-0/+4
|
* mk: fix hash function (#315)Neven Sajko2020-01-131-7/+3
| | | | Avoid signed integer overflow using ulong instead of long h.
* mk: treat X= as empty list in rc shellRuss Cox2020-01-131-6/+12
| | | | | | | | | | | | | This brings mk's behavior when using rc in line with Plan 9's. The existing code is for Unix environment data structures but also was assuming Unix shell semantics where empty and missing variables are mostly equivalent. The Plan 9 code (/sys/src/cmd/mk/plan9.c in the distribution) explicitly removes /env/name (creating an empty list) when the value is missing or an empty string. Fixes #255.
* all: fix or silence various gcc warningsRuss Cox2020-01-121-1/+1
| | | | | As usual, gcc finds some real problems but also reports a ton of noise. Fix the problems and quiet the noise.
* Trivial changes: whitespace and modes.Dan Cross2020-01-108-13/+11
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* mk: plan9 style.Dan Cross2020-01-081-7/+8
| | | | | | | | In general, no space after `if` etc, and no braces for a single statement inside of a loop or conditional. Signed-off-by: Dan Cross <cross@gajendra.net>
* mk: fix out of bounds accessNeven Sajko2020-01-071-7/+21
| | | | | | | | | A loop is added for each structure field instead of accessing the other fields through the first one in one loop. Updates #313 Change-Id: I0e27e15feacb77391bc1decee7cf720d64d14586
* mk: avoid infinite loop when targets are repeatedRuss Cox2015-08-272-0/+6
| | | | | | | | | | | Fixes "mk -f /tmp/x.mk y x" or "mk -f /tmp/x.mk" where /tmp/x.mk is: x y x: f echo hi Change-Id: I7fa87dc4750c04fdba010b990c190722b432b333 Reviewed-on: https://plan9port-review.googlesource.com/1361 Reviewed-by: Russ Cox <rsc@swtch.com>
* mk: pass environment to P commandRuss Cox2011-08-271-1/+1
| | | | | R=rsc http://codereview.appspot.com/4977041
* unix fixrsc2007-04-211-0/+5
|
* fix empty string interpolation bugs (Michael Teichgräber)rsc2007-03-262-9/+14
|
* better rc detection (Michael Teichgräber)rsc2007-03-261-1/+1
|
* 64-bitrsc2007-03-261-1/+1
|
* avoid broken print (Gabriel Diaz)rsc2006-10-121-0/+2
|
* 64-bitrsc2006-04-2014-27/+30
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-018-9/+9
|
* undo debugging.rsc2005-10-311-1/+0
|
* ctype sign fixes (Tom Miller)rsc2005-10-312-1/+2
|
* Detect rc again.rsc2005-10-291-3/+5
|
* Fix time race.rsc2005-08-101-1/+1
|
* use full prototypesrsc2005-05-071-1/+1
|
* silence archive warning for .a filesrsc2005-02-021-1/+2
|
* avoid saying unsigned long, for unix portrsc2005-01-232-2/+2
|
* Long-standing bug in syminit, tickled by placingrsc2005-01-152-3/+5
| | | | | initshell before syminit. Don't understand why syminit exists at all.
* not reachedrsc2005-01-141-1/+0
|
* checkpointrsc2005-01-142-666/+1
|
* Many small edits.rsc2005-01-133-23/+20
|
* add new | syntax.rsc2005-01-0419-83/+281
| | | | syntax will change.
* Goodbye SHORTLIBrsc2005-01-041-1/+2
|
* more little compile fixesrsc2004-12-281-0/+3
|
* add readn to avoid need for plan9port libcrsc2004-12-272-0/+20
|
* More little bug fixesrsc2004-05-141-0/+8
|
* the lastbug fix?rsc2004-04-214-9/+12
|
* handle long namesrsc2004-04-211-10/+63
|
* Who'd have guessed this was broken?rsc2004-04-211-2/+2
|
* clean up when finished.rsc2004-04-191-1/+0
| | | | | don't set PLAN9 don't set PLAN9
* Whoops.rsc2004-03-031-0/+4
|
* More Mac tweaks.rsc2004-03-024-35/+5
|
* Various tweaks.rsc2004-02-291-1/+1
|
* Small tweaks to make things build again.rsc2004-02-291-1/+1
|
* make -> mkrsc2003-11-231-3/+3
|
* print current directory in "don't know how to make" errors.rsc2003-11-231-1/+9
|
* Use new directory structure.rsc2003-10-111-4/+4
|
* Licensing and various tweaks.rsc2003-10-111-258/+0
|
* Reorgrsc2003-09-3012-253/+4
|
* Initial revisionrsc2003-09-3038-0/+5150
|