diff options
Diffstat (limited to '')
-rwxr-xr-x[l---------] | build | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/build b/build index 38d2cab..aa11764 120000..100755 --- a/build +++ b/build @@ -1 +1,18 @@ -build-scripts/build-cabal \ No newline at end of file +#!/bin/sh -eu + +SRC_DIR="$HOME/.xmonad" +EXE_NAME="xmonad-ng" +OUT="$1" + +shift + +cd "$SRC_DIR" || exit 1 + +cabal new-configure \ + --enable-optimization \ + --enable-executable-stripping + +cabal new-build + +find "$SRC_DIR"/dist-newstyle -type f -executable -name "$EXE_NAME" \ + -exec mv -u '{}' "$OUT" ';' |