1
0
Fork 0
Commit Graph

15 Commits (139fb213b9cbf62449caf30db78fae6a9199ce73)

Author SHA1 Message Date
Michael Raitza 82e3cf72dc Implement recursive path building in getSrc
${l.S ...} now tries to build its arguments when they do not exist, yet. It
behaves like a redo-ifchange, now.
2021-02-19 19:52:44 +01:00
Michael Raitza 6f23f29ba4 Add convenience function l.S
Takes the same arguments as l.src but returns the necessary /bin/sh code that
creates a softlink to src and cd's to the location of the current do script.
2021-02-19 09:27:27 +01:00
Michael Raitza 224ff92966 Extend getSrc to take an outFunc which operates on the filtered sources 2021-02-19 09:18:10 +01:00
Michael Raitza 5e3b992c6f Extend getSrc to allow specifying subtrees of sources.
Using ${l.src dir} will include the whole subtree as a dependency.
2021-02-18 22:28:04 +01:00
Michael Raitza 69bd805cc6 Implement the getSrc combinator
Allows the use of ${l.src ./foo ./bar} to generate a sparse source tree, used
for the do script. This disects the source tree into those piece actually needed
to build the target.
- boosts clarity as all sources have to be explicitly specified
- targets that don't use eachothers sources should be independent now
2021-02-18 21:06:02 +01:00
Michael Raitza d0d5b30f6a Add src directory location info with cwd and (relative) rcwd 2021-02-17 18:54:57 +01:00
Michael Raitza 7405c29521 Move src filter into redo.getSrc. 2021-02-17 14:42:43 +01:00
Michael Raitza e6729e269f Copy source tree to non-nix-builder build directory and cd to the right spot 2021-02-17 14:06:04 +01:00
Michael Raitza 870493c34b remove trace 2021-02-17 11:00:13 +01:00
Michael Raitza bc0989e0b7 Add filtered src tree to non-nix redo targets 2021-02-17 10:43:26 +01:00
Michael Raitza 2e6ec04d74 Fix outputs to out 2021-02-17 09:45:12 +01:00
Michael Raitza 696271700a handle simultaneous writes to stdout and $3 2021-02-17 09:23:25 +01:00
Michael Raitza dd8952be85 Add nixredo-whichdo; Put do file discovery into nix 2021-02-16 20:32:15 +01:00
Michael Raitza fc8781a2e0 Add nixredo-deps; Use outputs from local store when available 2021-02-16 13:17:01 +01:00
Michael Raitza 799b381502 Initial commit.
nixredo. No default.do resolution.
2021-02-14 23:40:26 +01:00