-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequire
More file actions
executable file
·25 lines (23 loc) · 749 Bytes
/
require
File metadata and controls
executable file
·25 lines (23 loc) · 749 Bytes
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
#!/bin/bash
# Check if the require.list file exists in the current directory
if [ -f "require.list" ]; then
# Read the contents of require.list and install each package
while IFS= read -r package; do
echo "Installing $package..."
sudo apt install -y "$package"
done < require.list
else
# If the file doesn't exist, print an error message
echo "Error: require.list file not found in the current directory."
fi
# Make install tgbot
sudo apt install g++ make binutils cmake libboost-system-dev libssl-dev zlib1g-dev libcurl4-openssl-dev -y
sudo apt install libboost-test-dev doxygen -y
cd /tmp
git clone https://github.com/reo7sp/tgbot-cpp
cd tgbot-cpp
cmake .
make -j4
sudo make install
cd ..
sudo rm -r tgbot-cpp