git.iko.soy/typeable/swagger2
on v2.1.4.1 help sign in
typeable/swagger2/install-hspec-discover.sh
18 lines 391 B history raw
1#!/bin/sh
3set -ex
5if [ ! -e $HOME/.local/bin/hspec-discover ]; then
6 # Fetch the source
7 cabal get hspec-discover-2.4.4
8 cd hspec-discover-2.4.4
10 # Set-up project
11 echo 'packages: .' > cabal.project
13 # build exe
14 cabal new-build hspec-discover:exe:hspec-discover
16 # copy executable to $HOME/.local/bin
17 cp $(find dist-newstyle -name hspec-discover -type f) $HOME/.local/bin
18fi