diff options
author | Ryan Kavanagh <rak@rak.ac> | 2023-01-31 14:37:10 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2023-01-31 14:37:10 -0500 |
commit | 9a8ca539d71dc338abaf569f8ba1325bf4090a68 (patch) | |
tree | 58f61c6fb999be1280bb67b0a9179f8c16f3277f /dot_xmonad/executable_build | |
parent | rm bin/mutt (diff) | |
parent | lbdbrc update for mutt aliases and no gpg on openbsd (diff) |
Merge remote-tracking branch 'origin'
Diffstat (limited to '')
-rw-r--r-- | dot_xmonad/executable_build | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dot_xmonad/executable_build b/dot_xmonad/executable_build new file mode 100644 index 0000000..fa37a66 --- /dev/null +++ b/dot_xmonad/executable_build @@ -0,0 +1,13 @@ +#!/bin/ksh -eu + +output_file="${1}" + +if [ "${output_file}" -nt xmonad.hs ] && [ "${output_file}" -nt /usr/local/bin/xmonad ]; then + echo "${output_file}" is newer than xmonad.hs + exit 0 +fi + +cabal v2-install exe:xmonad-config --overwrite-policy=always --install-method=copy + +[ -e "${output_file}" ] && mv -f "${output_file}" "${output_file}.old" +install "${HOME}/.cabal/bin/xmonad-config" "${output_file}" |