Commit Graph

25 Commits

Author SHA1 Message Date
Michael Forney a4844805d7 Prevent accidental use of undefined globals 2026-04-11 15:51:27 -07:00
Michael Forney 2eddb78d1b Store dist files in config.distdir
This makes it easy to remove old distfiles with `git clean -f dist`.
2026-03-12 16:40:37 -07:00
Michael Forney 8f62705628 Remove recursive setup.lua operation
This was inherited from when the gen scripts were written in rc and
it was too slow to run the whole thing when any individual package
changed. This is not an issue in Lua, and switching to a single
invocation will allow for future improvements such as relying more
on the Lua package system.
2026-03-12 15:50:43 -07:00
Michael Forney f910bf367c Rename some fspec files 2021-05-27 01:19:21 -07:00
Michael Forney 2df90914df Add blake3 hashes to fspec files 2020-06-22 23:33:21 -07:00
Michael Forney 7d33f5bb5e Add sortedpairs helper function 2020-06-22 22:59:35 -07:00
Michael Forney b4ced98b9d Generate root.perms from fspec 2020-06-22 22:59:35 -07:00
Michael Forney dead52fd1c Only update local.fspec if the contents changed 2020-06-22 22:47:59 -07:00
Michael Forney 47b356b065 Use exec to avoid unnecessary processes 2020-06-22 22:47:59 -07:00
Michael Forney d9bbd55168 Write fspec attributes in consistent order 2020-06-22 22:47:59 -07:00
Michael Forney 71208abb64 Slight simplification 2020-06-22 22:47:59 -07:00
Michael Forney cefdcedc2c Combine mkdir calls 2020-06-15 23:35:02 -07:00
Michael Forney 214296ab72 Make gen a local function 2020-06-15 23:35:02 -07:00
Michael Forney 8494d08ca9 Add fspec output 2020-06-15 23:35:02 -07:00
Michael Forney 83d28a0cd3 Use variable name that matches ninja variable 2020-06-15 23:35:02 -07:00
Michael Forney f0fb0e5177 Start to support configurable prefix 2020-05-25 21:11:21 -07:00
Michael Forney f420887253 Use assert in a few places 2020-05-17 01:13:14 -07:00
Michael Forney 2dfb6db807 Lua 5.1 compatibility 2020-05-10 02:15:55 -07:00
Michael Forney 051963c7fe Add support for building multiple configurations
Now, you can build in separate directories per configuration:

	mkdir foo
	(cd foo && ../setup.lua)
	samu -C foo
2020-01-29 22:14:33 -08:00
Michael Forney 482d996d73 Add more short command descriptions 2019-11-17 20:09:14 -08:00
Michael Forney 0d1e24fdce setup.lua: Use load 2018-02-24 00:56:13 -08:00
Michael Forney 2fce3c20ca Move $dir/local.perms -> $outdir/local.perms 2017-10-23 21:43:33 -07:00
Michael Forney 6026883449 Remove need for build.ninja and config.ninja 2017-10-20 21:52:13 -07:00
Michael Forney 3d277343ce setup.lua: Create config.ninja if it doesn't exist 2017-09-25 20:26:49 -07:00
Michael Forney ba94a8513d Rewrite ninja generation scripts in Lua 2017-09-25 19:23:06 -07:00