This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot-2/tg-install.sh

23 lines
780 B
Bash
Raw Normal View History

2016-09-04 09:42:51 +02:00
# Installs necessary dependencies for, and compiles, tg ("test" branch).
#!/bin/sh
2016-09-04 20:49:43 +02:00
echo "This script is intended for Ubuntu 16.04 and later. It will probably work on"
echo "14.04 or 12.04 as well as Debian, but this is not guaranteed."
2016-09-04 09:42:51 +02:00
echo "This script will request root privileges to install the following packages:"
echo "git libreadline-dev libssl-dev libevent-dev make"
echo "Press enter to continue. Use Ctrl-C to exit."
read
sudo apt-get update
sudo apt-get install -y git libreadline-dev libssl-dev libevent-dev make
2016-09-04 20:49:43 +02:00
sudo -k
git clone http://github.com/vysheng/tg --recursive -b test
cd tg
./configure --disable-libconfig --disable-liblua --disable-json
make
2016-09-04 09:42:51 +02:00
cd ..
echo 'All done! Use ./tg-launch.sh to launch tg.'
echo 'Be sure to log in with your Telegram account.'