-
Notifications
You must be signed in to change notification settings - Fork 0
/
build
executable file
·23 lines (17 loc) · 812 Bytes
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash -eu
################################################################################
# Edit the following constants and then rename this script to ~/.xmonad/build
# The directory holding your source code and stack.yaml file:
SRC_DIR=~/.config/xmonad/
# The name of the executable produced by stack. This comes from the
# executable section of your *.cabal or package.yaml file.
EXE_NAME=xmonad
###############################################################################
# Unset STACK_YAML, to ensure that $SRC_DIR/stack.yaml is used.
unset STACK_YAML
# Do the build.
cd $SRC_DIR
stack build
# Create a hard link at the requested destination, replacing any existing one.
ln -f -T $(stack exec -- which $EXE_NAME) $1
ln -f -T $(stack exec -- which "xmobar") "/home/karim/.local/bin/xmobar"