[XMonad] Add a build file

This commit is contained in:
2017-02-21 22:17:03 -08:00
parent cc8e45b128
commit 2c2cdc8cbe

16
dotfiles/xmonad/build Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh -eu
SRC_DIR=~/.xmonad/xmonad.hs
EXE_NAME=imalison-xmonad
################################################################################
# This script will be given a single argument, the path to the
# executable it should produce.
output_file=$1; shift
################################################################################
cd $SRC_DIR
stack build
mv -u `stack path --dist-dir`/build/$EXE_NAME/$EXE_NAME $output_file