forked from colonelpanic/dotfiles
[XMonad] Add a build file
This commit is contained in:
parent
cc8e45b128
commit
2c2cdc8cbe
16
dotfiles/xmonad/build
Executable file
16
dotfiles/xmonad/build
Executable 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
|
Loading…
Reference in New Issue
Block a user