Skip to content

Commit 70b25be

Browse files
author
Damian Rouson
committed
WIP: start installation script
1 parent 4443986 commit 70b25be

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

install.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
3+
set -u # error on use of undefined variable
4+
set -e # exit on error
5+
6+
# Install Haskell Stack to /usr/local/bin/stack
7+
if command -v stack &> /dev/null ; then
8+
echo "found stack"
9+
else
10+
curl -sSL https://get.haskellstack.org/ | sh
11+
fi
12+
13+
14+
# Check for Stack in /usr/local/bin/stack
15+
16+
# On macOS, it might be necessary to run 'xcode-select --install' and/or
17+
# 'open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg'
18+
# to set up the Xcode command-line tools, which Stack uses.
19+
20+
# Add '${USER}/.local/bin' the beginning of PATH in the fpm-setup.sh
21+
22+
#cd boostrap
23+
#stack install
24+
25+
# Check for fpm in ${USER}/.local/bin

0 commit comments

Comments
 (0)