Skip to content

Commit cfd5837

Browse files
committed
feat: install.sh
1 parent 3153528 commit cfd5837

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

install.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
set -e
2+
3+
make=$(which make)
4+
5+
stack=$(which stack)
6+
7+
git=$(which git)
8+
9+
if [ -z $make ]; then
10+
echo "Please install GNU Make to run the installer"
11+
exit 1
12+
fi
13+
14+
if [ -z $stack ]; then
15+
echo "Please install the stack build system for Haskell to run the installer"
16+
exit 1
17+
fi
18+
19+
if [ -z $git ]; then
20+
echo "You must have git installed"
21+
exit 1
22+
fi
23+
24+
echo "Using Git at $git"
25+
echo "Using Stack at $stack"
26+
echo "Using Make at $make"
27+
28+
rm -rf /tmp/glados
29+
30+
$git clone "https://github.com/TopineurInc/Glados.git" /tmp/glados
31+
32+
make -C /tmp/glados
33+
34+
printf "\nYou may enter your password to run the following command and add the glados to your path."
35+
echo "sudo mv /tmp/glados/glados /usr/local/bin"
36+
sudo mv /tmp/glados/glados /usr/local/bin
37+
38+
rm -rf /tmp/glados

0 commit comments

Comments
 (0)