Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Auto-detect sed in-place editing capability during "make install"
We're already preprocessing the default configuration; it's easy to add another sed invocation to uncomment the TODOTXT_SED_COMMAND definition. And since we're using in-place editing here, the sed command will only succeed if it has that capability. In other words, it's both the capability detection and the corresponding config adaptation in one command! The config.bak file is cleaned up on success (a backup-less -i could be used, but as todo.sh uses the backup file variant and there might be sed commands that support one but not the other, it's safer this way). Both outcomes (emulation required or not) are logged as well.
- Loading branch information