Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use correct printf() flag for signed int | Tharre | 2017-08-25 | 1 | -1/+1 |
| | |||||
* | Fix two small style issues | Tharre | 2017-08-25 | 1 | -2/+2 |
| | |||||
* | Fix includes in header files | Tharre | 2017-05-08 | 4 | -1/+5 |
| | |||||
* | Add make_abs() utility function | Tharre | 2017-01-31 | 3 | -12/+14 |
| | |||||
* | Don't fail if directories disappear, just rebuild | Tharre | 2016-12-25 | 1 | -11/+27 |
| | | | | Fixes #9 | ||||
* | Remove unused #define and fix copyright comment | Tharre | 2016-11-10 | 2 | -3/+1 |
| | |||||
* | Move utility functions to util.c | Tharre | 2016-10-31 | 3 | -39/+45 |
| | |||||
* | Split add_prereq() into general and specific | Tharre | 2016-10-31 | 3 | -11/+25 |
| | |||||
* | Fix reference to free'd memory in handle_c() | Tharre | 2016-10-28 | 1 | -2/+3 |
| | |||||
* | Implement logging using REDO_DEBUG env variable | Tharre | 2016-10-27 | 3 | -0/+17 |
| | |||||
* | Make sha1_to_hex() return a null-terminated string | Tharre | 2016-10-26 | 1 | -1/+3 |
| | |||||
* | Make redo shortcut again | Tharre | 2016-10-25 | 1 | -2/+7 |
| | |||||
* | Cleanup handle_c() a bit | Tharre | 2016-10-25 | 1 | -51/+50 |
| | |||||
* | Remove REDO_MAGIC handling code from handle_c() | Tharre | 2016-10-25 | 1 | -13/+0 |
| | |||||
* | Implement modification time (ctime) check | Tharre | 2016-08-03 | 1 | -34/+74 |
| | | | | | | Hashing over the contents of dependencies over and over again is slow. To avoid this, we first check the modification time (ctime), and only if that check fails we generate a hash. | ||||
* | Fix overflow error when there are too many fields | Tharre | 2016-08-03 | 2 | -6/+7 |
| | |||||
* | Always show debug() statements to the compiler | Tharre | 2016-08-03 | 1 | -6/+8 |
| | |||||
* | Implement new dependency storage system | Tharre | 2016-07-26 | 5 | -108/+345 |
| | |||||
* | Cleanup dep_info struct | Tharre | 2016-06-25 | 1 | -23/+20 |
| | |||||
* | Fix invalid memory access bug in parse_shebang() | Tharre | 2016-05-22 | 1 | -2/+2 |
| | |||||
* | Handle absolute $3 correctly | Tharre | 2016-05-02 | 1 | -1/+5 |
| | |||||
* | Make $3 an absolute path | Tharre | 2015-09-16 | 1 | -1/+2 |
| | |||||
* | Ensure all environment variables are set | Tharre | 2015-06-15 | 1 | -3/+6 |
| | |||||
* | Actually write the source flag into the dep store | Tharre | 2015-06-13 | 1 | -0/+2 |
| | |||||
* | Don't create files with executeable permissions | Tharre | 2015-06-13 | 1 | -1/+1 |
| | |||||
* | Make `general` path from get_doscripts() absolute | Tharre | 2015-06-13 | 1 | -9/+13 |
| | |||||
* | Designated initializers set values to 0 already | Tharre | 2015-06-13 | 1 | -6/+0 |
| | |||||
* | Only hash files once | Tharre | 2015-06-13 | 1 | -24/+31 |
| | |||||
* | Make sha1_to_hex static | Tharre | 2015-06-13 | 1 | -1/+1 |
| | |||||
* | Use dep_info earlier to avoid duplication | Tharre | 2015-06-13 | 1 | -80/+90 |
| | | | | | | This is a prerequisite for avoiding hashing one and the same file multiple times. This also keeps the necessary parsing code for the dependency store out of build_target() into handle_c() where it belongs. | ||||
* | Fix waitpid() error message and 2 if statements | Tharre | 2015-06-13 | 1 | -7/+5 |
| | |||||
* | Don't export build_target() | Tharre | 2015-06-13 | 2 | -3/+1 |
| | | | | | build_target() should not be called from outside, update_target() should be used instead. | ||||
* | Pass 0755 directly instead of using POSIX macros | Tharre | 2015-06-10 | 1 | -2/+1 |
| | | | | | I'm not perfectly sure if this actually violates the POSIX standard or not, but in practice all systems seem to accept it. | ||||
* | Fix error message for unsupported newlines | Tharre | 2015-06-08 | 1 | -1/+1 |
| | |||||
* | Rename `dependency file` to `dependency record` | Tharre | 2015-05-25 | 1 | -5/+5 |
| | |||||
* | Rename `do-file` to `.do script` | Tharre | 2015-05-25 | 1 | -38/+39 |
| | |||||
* | Small rename and code simplification | Tharre | 2015-05-25 | 2 | -8/+7 |
| | |||||
* | Store dependencies as plain text instead of binary | Tharre | 2015-05-25 | 1 | -20/+51 |
| | | | | | | | | Binary files are hard to debug, and even while the code required to parsing them is simpler it's not worth the tradeoff. Note that handling of newlines in target names is not implemented yet, they require some sort of special escaping. | ||||
* | Use full path instead of one concatenated filename | Tharre | 2015-05-24 | 4 | -52/+23 |
| | | | | | Creation of the redo store (.redo/) is now silent, that should probably be reimplemented in a better way at a later time. | ||||
* | Fix some issues with paths | Tharre | 2015-05-05 | 2 | -11/+5 |
| | |||||
* | Make redo lines colored to enhance readability | Tharre | 2015-05-05 | 1 | -1/+1 |
| | |||||
* | Always use the CWD of the dofile, not the target | Tharre | 2015-02-20 | 1 | -10/+5 |
| | |||||
* | Replace make_relative() with relpath() | Tharre | 2015-02-15 | 3 | -19/+25 |
| | | | | | Also improve the documentation for this function, and add a few examples to clarify what it does (and what not). | ||||
* | Rewrite add_dep() to be atomic through O_APPEND | Tharre | 2015-01-25 | 1 | -20/+24 |
| | |||||
* | FILENAME_MAX should be the largest path there is | Tharre | 2015-01-25 | 1 | -1/+1 |
| | |||||
* | Remove unecessary check for NULL from add_dep() | Tharre | 2015-01-15 | 1 | -5/+1 |
| | |||||
* | Fix the mode argument of open() | Tharre | 2015-01-09 | 1 | -1/+2 |
| | |||||
* | Randomize argument processing order | Tharre | 2015-01-09 | 1 | -3/+10 |
| | |||||
* | Make redo-* commands fail if called from outside | Tharre | 2015-01-05 | 1 | -7/+14 |
| | |||||
* | Remember sources and don't rebuild missing ones | Tharre | 2015-01-03 | 1 | -3/+14 |
| |