Skip to content

Commit

Permalink
script/bootstrap: Update to match latest version on build-system-dock…
Browse files Browse the repository at this point in the history
…er-images
  • Loading branch information
stephengtuggy committed Mar 6, 2023
1 parent 05431e4 commit bc983e6
Showing 1 changed file with 95 additions and 3 deletions.
98 changes: 95 additions & 3 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# @param : just one parameter, either a 1 or a 0, to indicate whether or not to
# UPDATE_ALL_SYSTEM_PACKAGES
#====================================
# Copyright (C) 2020-2022 Stephen G. Tuggy and other Vega Strike contributors
# Copyright (C) 2020-2023 Stephen G. Tuggy and other Vega Strike contributors
#
# This file is part of Vega Strike.
#
Expand All @@ -29,7 +29,7 @@
set -e

echo "------------------------------"
echo "--- bootstrap | 2022-12-16 ---"
echo "--- bootstrap | 2023-03-05 ---"
echo "------------------------------"

UPDATE_ALL_SYSTEM_PACKAGES="$1"
Expand Down Expand Up @@ -381,6 +381,54 @@ function bootstrapOnUbuntu()
esac
}

function bootstrapOnPopOS ()
{
apt-get update

if [ "${UPDATE_ALL_SYSTEM_PACKAGES}" -eq 1 ]
then
apt-get -qy upgrade
fi

case "$LINUX_CODENAME" in
"jammy")
apt-get -qy install \
git \
cmake \
python3-dev \
build-essential \
automake \
autoconf \
libpng16-16 \
libpng-dev \
libpng-tools \
libjpeg-turbo8-dev \
libexpat1-dev \
libgdk-pixbuf-2.0-dev \
libgtk-3-dev \
libopenal-dev \
libogg-dev \
libvorbis-dev \
libglvnd-dev \
libgl1-mesa-dev \
libsdl1.2-dev \
libopengl0 \
libpostproc-dev \
freeglut3-dev \
libboost-python-dev \
libboost-log-dev \
libboost-regex-dev \
libxmu-dev \
clang \
lsb-release
;;
*)
echo "Sorry, this version of Pop! OS is not currently supported"
exit 2
;;
esac
}

function bootstrapOnLinuxMint ()
{
apt-get update
Expand All @@ -391,6 +439,37 @@ function bootstrapOnLinuxMint ()
fi

case "$LINUX_CODENAME" in
"vera")
apt-get -qy install \
git \
cmake \
python3-dev \
build-essential \
automake \
autoconf \
libpng16-16 \
libpng-dev \
libpng-tools \
libjpeg-turbo8-dev \
libexpat1-dev \
libgdk-pixbuf-2.0-dev \
libgtk-3-dev \
libopenal-dev \
libogg-dev \
libvorbis-dev \
libglvnd-dev \
libgl1-mesa-dev \
libsdl1.2-compat-dev \
libopengl0 \
libpostproc-dev \
freeglut3-dev \
libboost-python-dev \
libboost-log-dev \
libboost-regex-dev \
libxmu-dev \
clang \
lsb-release
;;
"vanessa")
apt-get -qy install \
git \
Expand Down Expand Up @@ -1324,7 +1403,14 @@ function bootstrapOnManjaro ()
libpng \
libvorbis \
libxmu \
openal
openal \
make
}

function bootstrapOnFuntoo ()
{
ego sync
emerge openal
}

case "${LINUX_ID}" in
Expand All @@ -1334,6 +1420,9 @@ case "${LINUX_ID}" in
"ubuntu")
bootstrapOnUbuntu
;;
"pop")
bootstrapOnPopOS
;;
"linuxmint")
bootstrapOnLinuxMint
;;
Expand All @@ -1358,6 +1447,9 @@ case "${LINUX_ID}" in
"manjaro")
bootstrapOnManjaro
;;
"funtoo")
bootstrapOnFuntoo
;;
*)
echo "Sorry, unrecognized/unsupported Linux distribution"
exit 2
Expand Down

0 comments on commit bc983e6

Please sign in to comment.