aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorDamian Rouson <damian@sourceryinstitute.org>2020-10-13 10:03:15 -0700
committerDamian Rouson <damian@sourceryinstitute.org>2020-10-13 10:03:15 -0700
commitd64e54adce235a56dae2b27a2c22010c78a1b875 (patch)
treea1ee86dd06f5ceeb52a647ec83fa5779924949b7 /install.sh
parentd3a65e36b28808c2c51ae41fc107f1179e27a08c (diff)
downloadfpm-d64e54adce235a56dae2b27a2c22010c78a1b875.tar.gz
fpm-d64e54adce235a56dae2b27a2c22010c78a1b875.zip
WIP: start installation script
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..62e6892
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -u # error on use of undefined variable
+set -e # exit on error
+
+# Install Haskell Stack to /usr/local/bin/stack
+if command -v stack &> /dev/null ; then
+ echo "found stack"
+else
+ curl -sSL https://get.haskellstack.org/ | sh
+fi
+
+
+# Check for Stack in /usr/local/bin/stack
+
+# On macOS, it might be necessary to run 'xcode-select --install' and/or
+# 'open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg'
+# to set up the Xcode command-line tools, which Stack uses.
+
+# Add '${USER}/.local/bin' the beginning of PATH in the fpm-setup.sh
+
+#cd boostrap
+#stack install
+
+# Check for fpm in ${USER}/.local/bin