Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Calling compute_uprel() before redo_ifchange() | AndreyDobrovolskyOdessa | 2021-02-27 | 1 | -1/+1 |
| | | | | | | | | | | | | record_deps() is called after redo_ifchange(). It needs uprel[] value corresponding to REDO_DIRPREFIX supplied by the parent process. But redo_ifchange() may modify REDO_DIRPREFIX in case it will envoke default*.do file located in one of updirs. In this case if compute_uprel() will be called from inside record_deps(), it will produce wrong uprel[] value. That's why compute_uprel() must be called before run_script() will be able to change REDO_DIRPREFIX for the child process. Closes: #11 [via git-merge-pr] | ||||
* | change fflag testing from ! to < 0 | AndreyDobrovolskyOdessa | 2021-02-20 | 1 | -1/+1 |
| | | | | Closes: #10 [via git-merge-pr] | ||||
* | bootstrap.sh: fix from clean build | Leah Neukirchen | 2021-02-07 | 1 | -2/+5 |
| | |||||
* | add bootstrap.sh | Leah Neukirchen | 2021-02-07 | 1 | -0/+10 |
| | | | | Closes #7. | ||||
* | take existence of a dofile into account when checking for sourcefile | Leah Neukirchen | 2021-02-07 | 1 | -1/+8 |
| | | | | | | | This resolves issues when the .dep.redo went missing or the file was built by other means. Closes #6. | ||||
* | Fix some compiler warnings | Max Horn | 2021-02-07 | 1 | -3/+3 |
| | | | | | | | | | | | | On non-Linux systems (e.g. macOS, BSD), st.st_ctime may not be of the right type for PRIx64 ; so just cast it to an uint64_t, which is the type PRIx64 corresponds to. Also, clang may warn about `"/"+(*dirprefix ? 0 : 1)`, suspecting a coding error. Using `(*dirprefix ? "/" : "")` is unambiguous and also easier to grok for some people (e.g. myself ;-)). Closes: #9 [via git-merge-pr] | ||||
* | Specify starting point for 'find' | Max Horn | 2021-02-07 | 2 | -2/+2 |
| | | | | | | | non-GNU versions of find (e.g. BSD) do not allow omitting the starting point. Closes: #8 [via git-merge-pr] | ||||
* | README.md: typo | Leah Neukirchen | 2020-10-18 | 1 | -1/+1 |
| | |||||
* | add README.md v0.3 | Leah Neukirchen | 2020-10-01 | 1 | -1/+20 |
| | |||||
* | Fix non implicit job lease detection | Christian Kögler | 2020-09-06 | 1 | -1/+2 |
| | | | | | | | | | | | If a job is non implicit, the job lease will never be written back via function vacate. The information non implicit is wrongly derived by the counter implicit_jobs, which will never be negative and therefor run_script is always called with implicit job true. This fix checks if implicit is possible before procuring the job lease. Closes: #5 [via git-merge-pr] | ||||
* | 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 |
| |