migrate build scripts from xmonad-testing

The testing repo was not a good location for them, and is now
deprecated. They are now in `scripts/build`, and will be documented
in the main repo's `INSTALL.md`.
This commit is contained in:
brandon s allbery kf8nh
2022-04-18 15:53:16 -04:00
parent 965c4052fb
commit b6d62fe9d3
3 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/bin/sh -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=~/develop/oss/xmonad-testing
# The name of the executable produced by stack. This comes from the
# executable section of your *.cabal or package.yaml file.
EXE_NAME=xmonad-testing
################################################################################
# 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