forked from joaquinfontela/Wolfenstein-3D
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.sh
executable file
·43 lines (36 loc) · 889 Bytes
/
install.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
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
echo -e "\x1b[1m\x1b[32m [Installing dependencies] \x1b[0m\n"
echo -e "\x1b[1m\x1b[32m [Installing YAML-CPP] \x1b[0m\n"
cd common/src/YAML/yaml-cpp-master
mkdir build
cd build
cmake ..
sudo make install
cd ..
rm -r -f build
echo -e "\x1b[1m\x1b[32m \n [Downloading Lua] \x1b[0m\n"
curl -R -O http://www.lua.org/ftp/lua-5.4.2.tar.gz
tar zxf lua-5.4.2.tar.gz
cd lua-5.4.2
make linux
sudo make install
cd ..
rm lua-5.4.2
echo -e "\x1b[1m\x1b[32m \n [Compiling Server] \x1b[0m\n"
cd ../../../../
cmake .
make
sudo mv ServerMain /usr/local/bin
echo -e "\x1b[1m\x1b[32m \n [Compiling Editor] \x1b[0m\n"
cd qt/editor/
cmake .
make
cd ../../
echo -e "\x1b[1m\x1b[32m \n [Compiling Client] \x1b[0m\n"
cd client/executable
cmake .
make
sudo mv Wolfen3D /usr/local/bin
cd ..
sudo cp -r Wolfenstein /usr/local/share
echo -e "\x1b[1m\x1b[32m \n [Install finished] \x1b[0m\n"