This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
forked from TricksterGuy/complx
/
install_script_ubuntu_13_10.sh
executable file
·52 lines (43 loc) · 1.77 KB
/
install_script_ubuntu_13_10.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
DISTRO=$(lsb_release -si)
CODE=$(lsb_release -sc)
CODELITEAPTKEY='http://repos.codelite.org/CodeLite.asc'
CODELITEAPTSOURCE="deb http://repos.codelite.org/wx3.0/ubuntu/ $CODE universe"
COMPLXREPO='https://github.com/TricksterGuy/complx.git'
#if we aren't on Ubuntu use the debian repository
if [ $DISTRO != "Ubuntu" -a $DISTRO != "LinuxMint" ]; then
if [[ $DISTRO = "Debian" ]]; then
echo >&2 "Detected debian release $CODE"
CODELITEAPTSOURCE="deb http://repos.codelite.org/wx3.0/debian/ $CODE libs"
else
DEBIANVERSION=$(cat /etc/debian_version)
if [[ "$DEBIANVERSION" == *"wheezy"* ]]; then
echo >&2 "Detected debian release wheezy"
CODELITEAPTSOURCE="deb http://repos.codelite.org/wx3.0/debian/ wheezy libs"
elif [[ $DEBIANVERSION == *"squeeze"* ]]; then
echo >&2 "Detected debian release squeeze"
CODELITEAPTSOURCE="deb http://repos.codelite.org/wx3.0/debian/ squeeze libs"
else
echo >&2 "Your version of Debian is unsupported. Please follow the manual instructions."
exit 1
fi
fi
else
echo >&2 "Detected Ubuntu or Ubuntu variant"
fi
type apt-get >/dev/null 2>&1 || { echo >&2 "APT required, perhaps you don't have a Debian variant installed?"; exit 1; }
echo >&2 "Installing adding repo $CODELITEAPTKEY ..."
sudo apt-key adv --fetch-keys $CODELITEAPTKEY
sudo apt-add-repository "$CODELITEAPTSOURCE"
echo >&2 "Updating list of packages..."
sudo apt-get update
echo >&2 "Installing package build-essential..."
gksu apt-get install -y build-essential
echo >&2 "Installing wxwidgets 3.0..."
sudo apt-get install -y libwxbase3.0-0-unofficial libwxbase3.0-dev libwxgtk3.0-0-unofficial libwxgtk3.0-dev wx3.0-headers wx-common
echo >&2 "Building complx..."
make
echo >&2 "Installing complx..."
gksu make install
echo >&2 "Running ldconfig..."
gksu ldconfig