gnezdo 90d785858a Use devel/cabal module for x11/xmonad (still the latest release)
Combines the previous multi-package into a single bundle corresponding
to -main subpackage.

Help by kili, sthen

ok kili
2021-03-01 04:16:34 +00:00

14 lines
360 B
Bash

#!/bin/ksh -eu
output_file="${1}"
if [ "${output_file}" -nt xmonad.hs ]; 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}"