forked from pharo-robotics/MakrosTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setupMakrosTool.sh
executable file
·33 lines (30 loc) · 1.15 KB
/
setupMakrosTool.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "Sudo privs needed for the tool installation "
exit 1
fi
if [ ! -f /usr/bin/scale ]; then
echo "Scale not found. Installing. "
wget -O- https://raw.githubusercontent.com/guillep/Scale/master/setupScale.sh | sudo bash
fi
echo "*********************************************"
echo "* cloning MakrosTool repository "
echo "*********************************************"
git clone https://github.com/sbragagnolo/MakrosTool /tmp/MakrosTool
cd /tmp/MakrosTool
echo "*********************************************"
echo "* building MakrosTool image "
echo "*********************************************"
./build/buildMakros.st
echo "*********************************************"
echo "* checking if there is any old installation "
echo "*********************************************"
./build/uninstall.st
echo "*********************************************"
echo "* Copying files! "
echo "*********************************************"
./build/install.st
echo "*********************************************"
echo "* Cleaning the mess :) "
echo "*********************************************"
rm /tmp/MakrosTool -rf