Commit Graph

8 Commits

Author SHA1 Message Date
b370249ff1 -v var doesn't work on older version of zsh.
As such I had to switch this to -n with parameter expansion
2020-06-02 18:39:58 +00:00
6c3787ef1b Refactored to use .ONESHELL
This makes it a hell of a lot simpler but will lose support for BSD
make. All effected machines are running gnu-make, so the cost benefit
ratio ways heavily in favor of doing this.
2020-03-09 13:37:50 -04:00
35000ec4ce Fixed eager evaluation of conditionals issue. 2019-12-15 00:32:55 -05:00
39632d150e Added better reporting for mk_link. 2019-12-13 14:31:35 -05:00
5b81a2827b Added Step that create parent dir in symlinking. 2019-12-13 12:36:07 -05:00
578b14331f Added emacs modeline like feature. 2019-12-11 00:55:57 -05:00
3fcd8d81e5 Updated report to use unicode X. Matches rest of pattern. 2019-05-02 00:48:47 -04:00
e49934c99d Adding shared makefile logic and helper scripts
Shared logic can be imported via `include ../lib/shared.mk`
Helper functions include 3 current opperations

1. mk_link:: This will create a symbolic link if the file doesn't already exist.
2. rm_link:: Will remove the link if it is a symlink.
3. report :: This color codes the status of a message and adds a leading symbol.

report also can be called with `LAST_RETURN=$? report "message"`
and will expand this to be either `report info "message"` Or `report error
"message"` based on the last return value.
Current status are info, warn, and error.
2019-04-27 18:09:36 -04:00