From 29a3bfae91ff4843a9ea2cab5b8cd18393fbdbf4 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Mon, 2 Dec 2019 18:03:13 +0300 Subject: Refactor scripts --- build-scripts/build-cabal | 18 ------------------ build-scripts/build-cabal-sandbox | 22 ---------------------- build-scripts/build-stack | 15 --------------- 3 files changed, 55 deletions(-) delete mode 100755 build-scripts/build-cabal delete mode 100755 build-scripts/build-cabal-sandbox delete mode 100755 build-scripts/build-stack (limited to 'build-scripts') 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" ';' diff --git a/build-scripts/build-stack b/build-scripts/build-stack deleted file mode 100755 index 235b826..0000000 --- a/build-scripts/build-stack +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -eu - -SRC_DIR="$HOME/.xmonad" -EXE_NAME="xmonad-ng" -OUT="$1" - -shift - -unset STACK_YAML - -cd "$SRC_DIR" || exit 1 - -stack build - -ln -f -T "$(stack exec -- which $EXE_NAME)" "$1" -- cgit 1.4.1