File: install.sh

package info (click to toggle)
gsocket 1.4.43-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,224 kB
  • sloc: ansic: 14,009; sh: 3,629; makefile: 155
file content (10 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#! /usr/bin/env bash

## This script lives at https://gsocket.io/install.sh)

command -v git >/dev/null 2>&1 || { echo >&2 "git not found. Try 'apt-get install git'"; exit 1; }
git clone --depth 1 https://github.com/hackerschoice/gsocket.git || exit
( cd gsocket \
&& ./bootstrap \
&& ./configure && make && echo -e "\n---> Type 'cd gsocket; sudo make install' to install." )