summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2018-03-22 13:05:24 +0000
committerAndy Williams <andy@andywilliams.me>2018-03-22 13:05:24 +0000
commita3c8515fec8fde5366cde656512408c88720e08e (patch)
treea607cb72cd7f175017360be82773f4d8d1fcd4ca
parent37c13957945af7f148a72437738822192c86eb61 (diff)
Add debian support to bootstrap scriptsHEADmaster
-rw-r--r--bootscripts/os/debian.sh26
-rwxr-xr-xbootstrap.sh7
2 files changed, 31 insertions, 2 deletions
diff --git a/bootscripts/os/debian.sh b/bootscripts/os/debian.sh
new file mode 100644
index 0000000..8248790
--- /dev/null
+++ b/bootscripts/os/debian.sh
@@ -0,0 +1,26 @@
1#!/bin/bash
2# -*- coding: utf-8 -*-
3# Take an ubuntu install from zero to ready for Enlightenment
4
5function install_dep {
6 echo $SUDO_PASS | sudo -kS apt-get -y install $@ > /dev/null 2>$LOG_FILE || quit
7}
8
9function system_bootstrap {
10
11 install_dep automake autopoint build-essential ccache check cmake meson ninja-build
12 install_dep doxygen faenza-icon-theme git imagemagick libasound2-dev libblkid-dev
13 install_dep libbluetooth-dev libbullet-dev libcogl-dev libfontconfig1-dev
14 install_dep libfreetype6-dev libfribidi-dev libgif-dev libgstreamer1.0-dev
15 install_dep libgstreamer-plugins-base1.0-dev libharfbuzz-dev libibus-1.0-dev
16 install_dep libiconv-hook-dev libjpeg-dev libblkid-dev libluajit-5.1-dev
17 install_dep liblz4-dev libmount-dev libpam0g-dev libudev-dev
18 install_dep libpoppler-cpp-dev libpoppler-dev libpoppler-private-dev
19 install_dep libproxy-dev libpulse-dev libraw-dev librsvg2-dev libscim-dev
20 install_dep libsndfile1-dev libspectre-dev libssl-dev libsystemd-dev
21 install_dep libtiff5-dev libtool libudisks2-dev libunibreak-dev libvlc-dev
22 install_dep libwebp-dev libxcb-keysyms1-dev libxcursor-dev libxine2-dev
23 install_dep libxinerama-dev libxkbfile-dev libxrandr-dev libxss-dev
24 install_dep libxtst-dev texlive-base
25
26}
diff --git a/bootstrap.sh b/bootstrap.sh
index 0de4e06..9783ec0 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -113,11 +113,14 @@ fi
113cd $BUILD_DIR 113cd $BUILD_DIR
114 114
115OS="default" 115OS="default"
116DIST=`grep -s DISTRIB_ID /etc/*-release | awk -F '=' '{print $2}'` 116DIST1=`grep -s DISTRIB_ID /etc/*-release | awk -F '=' '{print $2}'`
117DIST2=`grep -s ^ID /etc/*-release | awk -F '=' '{print $2}'`
117if [[ -e "/etc/arch-release" ]] || [[ -e "/etc/manjaro-release" ]]; then 118if [[ -e "/etc/arch-release" ]] || [[ -e "/etc/manjaro-release" ]]; then
118 OS="arch" 119 OS="arch"
119elif [[ "$DIST" == "Ubuntu" ]]; then 120elif [[ "$DIST1" == "Ubuntu" ]]; then
120 OS="ubuntu" 121 OS="ubuntu"
122elif [[ "$DIST2" == "debian" ]]; then
123 OS="debian"
121elif [[ "$OSTYPE" == "darwin"* ]]; then 124elif [[ "$OSTYPE" == "darwin"* ]]; then
122 OS="osx" 125 OS="osx"
123 DEP_LIST="${DEP_LIST} brew" 126 DEP_LIST="${DEP_LIST} brew"