Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use blocking/nonblocking reads instead of poll(2) v0.2 | Leah Neukirchen | 2020-06-26 | 1 | -10/+5 |
| | | | | | | | | | | | | | | | Previously, we used a blocking fd for the token pipe and used poll(2) to see if anything could be read right now in try_procure(). However, there is a race between poll(2) and the subsequent blocking read(2), which can result in processes deadlocking when multiple instances of redo poll at the same time. Instead, we now make the fd nonblocking when needed, so that the read either reads or returns immediately if there is nothing to read. Closes #3. Closes: #4 [via git-merge-pr] | ||||
* | added empty target | Christian Kögler | 2020-05-17 | 1 | -2/+1 |
| | | | | Closes: #2 [via git-merge-pr] | ||||
* | compute proper relative paths when default.do is run from a directory above v0.1 | Leah Neukirchen | 2018-07-08 | 1 | -2/+26 |
| | |||||
* | document $1, $2, $3 for subdirectories | Leah Neukirchen | 2018-07-08 | 1 | -0/+4 |
| | |||||
* | style | Leah Neukirchen | 2017-08-31 | 1 | -23/+23 |
| | |||||
* | check_deps: allow target not to exist, keep track when dofile did not create ↵ | Leah Neukirchen | 2017-03-30 | 1 | -12/+9 |
| | | | | target | ||||
* | redo.c: keep lock_fd until the job actually finished | Leah Neukirchen | 2017-03-23 | 1 | -8/+13 |
| | |||||
* | run_script: do not leak lock file fds | Leah Neukirchen | 2017-03-23 | 1 | -0/+2 |
| | |||||
* | check_deps: always chdir back after calling sourcefile | Leah Neukirchen | 2017-03-22 | 1 | -3/+3 |
| | |||||
* | redo.c: style | Leah Neukirchen | 2017-03-22 | 1 | -9/+15 |
| | |||||
* | check_deps: keep track of proper pwd when recursing | Leah Neukirchen | 2017-03-22 | 1 | -6/+20 |
| | | | | | | | | Else, a dependency to a subdirectory would change into it, but then look up the subdirectory-relative names in the .dep file according to the dir_fd of the parent. Now, we keep dir_fd updated, and ensure after each .dep line we return to it. | ||||
* | Leahize | Leah Neukirchen | 2017-03-22 | 1 | -1/+1 |
| | |||||
* | redo.c: update reference to jdebp | Christian Neukirchen | 2016-08-24 | 1 | -1/+1 |
| | |||||
* | $2 for non-default .do files is same as $1 actually | Christian Neukirchen | 2015-09-06 | 1 | -1/+1 |
| | |||||
* | Mention redo -f / redo -k | Christian Neukirchen | 2015-09-06 | 1 | -2/+6 |
| | |||||
* | record_deps needs to go back to where redo started, so the paths make sense | Christian Neukirchen | 2015-09-06 | 1 | -0/+2 |
| | |||||
* | Fix $2 for default.EXT.do | Christian Neukirchen | 2015-09-06 | 1 | -8/+28 |
| | |||||
* | Don't read after end of dirprefix | Christian Neukirchen | 2015-09-06 | 1 | -1/+2 |
| | |||||
* | Avoid close(-1) on toplevel redo. | Christian Neukirchen | 2015-09-06 | 1 | -1/+2 |
| | |||||
* | Use PATH_MAX for filename buffers | Christian Neukirchen | 2015-09-06 | 1 | -9/+10 |
| | |||||
* | Add NOTES | Christian Neukirchen | 2015-09-06 | 1 | -0/+32 |
| | |||||
* | Lock jobs to detect parallel builds of same target | Christian Neukirchen | 2015-09-06 | 1 | -24/+72 |
| | |||||
* | Call .do files from the directory they reside in, rewrite arguments | Christian Neukirchen | 2015-09-06 | 1 | -9/+27 |
| | |||||
* | Error handling in targetchdir | Christian Neukirchen | 2015-09-06 | 1 | -1/+8 |
| | |||||
* | redo-hash, just for debugging | Christian Neukirchen | 2015-09-04 | 2 | -4/+3 |
| | |||||
* | Add redo-sources and redo-targets | Christian Neukirchen | 2015-09-04 | 2 | -0/+13 |
| | |||||
* | Change naming schema: .foo.c.dep -> .dep.foo.c | Christian Neukirchen | 2015-09-04 | 1 | -2/+2 |
| | |||||
* | Factor write_dep | Christian Neukirchen | 2015-09-04 | 1 | -11/+16 |
| | |||||
* | Track ctime and don't recompute hash when ctime is same | Christian Neukirchen | 2015-09-04 | 1 | -7/+23 |
| | |||||
* | fix formatting | Christian Neukirchen | 2015-09-04 | 1 | -41/+41 |
| | |||||
* | redo -s / REDO_STDOUT=1 to enable the old "collect stdout" mode. | Christian Neukirchen | 2015-09-04 | 1 | -6/+15 |
| | |||||
* | Output "redo ..." lines to stderr | Christian Neukirchen | 2015-09-04 | 1 | -1/+1 |
| | |||||
* | Actually recurse into dependencies when checking them >_< | Christian Neukirchen | 2015-09-04 | 1 | -10/+16 |
| | | | | Thanks to @erlehmann for pointing this out. | ||||
* | Mention @erlehmann's redo in shell. | Christian Neukirchen | 2015-09-04 | 1 | -0/+1 |
| | |||||
* | Store hash for foo in .foo.dep too, to detect changes to targets | Christian Neukirchen | 2015-09-01 | 1 | -2/+10 |
| | |||||
* | Skip over nonexisting files in record_deps | Christian Neukirchen | 2015-09-01 | 1 | -3/+7 |
| | |||||
* | Revert "Check for dofile earlier" | Christian Neukirchen | 2015-09-01 | 1 | -6/+6 |
| | | | | | | Then the ifcreate end up in the wrong dep file. This reverts commit 0c203b8300880d398e5df79d86b38bfba1b99329. | ||||
* | Put dofile into static buffer | Christian Neukirchen | 2015-09-01 | 1 | -2/+2 |
| | |||||
* | Add links.do | Christian Neukirchen | 2015-09-01 | 2 | -1/+5 |
| | |||||
* | Remove empty target tempfiles | Christian Neukirchen | 2015-09-01 | 1 | -0/+2 |
| | |||||
* | Build redo with redo... | Christian Neukirchen | 2015-09-01 | 2 | -0/+3 |
| | |||||
* | Skip source files, duh | Christian Neukirchen | 2015-09-01 | 1 | -1/+8 |
| | |||||
* | Check for dofile earlier | Christian Neukirchen | 2015-09-01 | 1 | -6/+6 |
| | |||||
* | Mention prior art | Christian Neukirchen | 2015-09-01 | 1 | -0/+4 |
| | |||||
* | cleanup | Christian Neukirchen | 2015-09-01 | 1 | -4/+1 |
| | |||||
* | Unmix declarations and code | Christian Neukirchen | 2015-09-01 | 1 | -19/+22 |
| | |||||
* | Add header comment | Christian Neukirchen | 2015-09-01 | 1 | -0/+11 |
| | |||||
* | tweak | Christian Neukirchen | 2015-09-01 | 1 | -2/+1 |
| | |||||
* | -Wwrite-strings safe | Christian Neukirchen | 2015-09-01 | 1 | -5/+5 |
| | |||||
* | cleanup | Christian Neukirchen | 2015-09-01 | 1 | -15/+13 |
| |