-
Notifications
You must be signed in to change notification settings - Fork 18
/
linux.sh
15 lines (14 loc) · 1 KB
/
linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# If linux use yum
if [ -f /etc/redhat-release ]; then
sudo yum update -y && sudo yum upgrade -y # Update and Upgrade termux first
sudo yum install -y build-essential # Install build-essential (for build .cpp and .c source code)
g++ CPPBot.cpp enet/callbacks.c enet/compress.c enet/host.c enet/list.c enet/packet.c enet/peer.c enet/protocol.c enet/unix.c -Wall -std=c++11 -fpermissive -o gtbot -latomic #Build source code into executable
echo "Build Successfully! you just do ./gtbot on terminal"
fi
# If linux use apt-get
if [ -f /etc/lsb-release ]; then
sudo apt-get update -y && sudo apt upgrade -y # Update and Upgrade termux first
sudo apt-get install -y build-essential # Install build-essential (for build .cpp and .c source code)
g++ CPPBot.cpp enet/callbacks.c enet/compress.c enet/host.c enet/list.c enet/packet.c enet/peer.c enet/protocol.c enet/unix.c -Wall -std=c++11 -fpermissive -o gtbot -latomic #Build source code into executable
echo "Build Successfully! you just do ./gtbot on terminal"
fi