From 2c2cdc8cbede4c3156c3fc5cb5157a6718d4806c Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 21 Feb 2017 22:17:03 -0800 Subject: [PATCH] [XMonad] Add a build file --- dotfiles/xmonad/build | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 dotfiles/xmonad/build diff --git a/dotfiles/xmonad/build b/dotfiles/xmonad/build new file mode 100755 index 00000000..d11ccbc1 --- /dev/null +++ b/dotfiles/xmonad/build @@ -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