about summary refs log tree commit diff
path: root/build
blob: 9b1019ae2fc92119b6a9fc57ad1cc3b0eea6add9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

SRC_DIR="$HOME/.xmonad"
EXE_NAME="xmonad-ng"
OUT="$1"

cd "$SRC_DIR" || exit 1

cabal new-configure --enable-optimization

cabal new-build

find "$SRC_DIR"/dist-newstyle -type f -executable -name "$EXE_NAME" \
    -exec mv -u '{}' "$OUT" ';'

Consider giving Nix/NixOS a try! <3