install.sh 377 B

1234567891011
  1. #! /usr/bin/env bash
  2. ## This script lives at https://gsocket.io/install.sh)
  3. command -v git >/dev/null 2>&1 || { echo >&2 "git not found. Try 'apt-get install git'"; exit 1; }
  4. git clone --depth 1 https://github.com/hackerschoice/gsocket.git || exit
  5. ( cd gsocket \
  6. && ./bootstrap \
  7. && ./configure && make && echo -e "\n---> Type 'cd gsocket; sudo make install' to install." )