about summary refs log tree commit diff
path: root/build-scripts/build-cabal
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbuild-scripts/build-cabal18
-rwxr-xr-xbuild-scripts/build-cabal-sandbox22
2 files changed, 0 insertions, 40 deletions
diff --git a/build-scripts/build-cabal b/build-scripts/build-cabal
deleted file mode 100755
index aa11764..0000000
--- a/build-scripts/build-cabal
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/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" ';'
diff --git a/build-scripts/build-cabal-sandbox b/build-scripts/build-cabal-sandbox
deleted file mode 100755
index 435fa43..0000000
--- a/build-scripts/build-cabal-sandbox
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh -eu
-
-SRC_DIR="$HOME/.xmonad"
-EXE_NAME="xmonad-ng"
-OUT="$1"
-
-shift
-
-cd "$SRC_DIR" || exit 1
-
-cabal sandbox init
-
-cabal configure \
-	--enable-optimization \
-	--enable-executable-stripping
-
-cabal install --only-dependencies
-
-cabal build
-
-find "$SRC_DIR"/dist -type f -executable -name "$EXE_NAME" \
-    -exec mv -u '{}' "$OUT" ';'

Consider giving Nix/NixOS a try! <3