Skip to content

Commit

Permalink
Merge pull request #1 from andersonandrei/main
Browse files Browse the repository at this point in the history
Include compatibility for Debian 12
  • Loading branch information
phrb authored Apr 26, 2024
2 parents e71098f + d964e1a commit 241cbbc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions install/setup_os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ function os_err() {
exit -1
}

function debian_12_lts() {
echo "Installing dependencies (requires sudo privileges)"
apt-get update
apt-get install -y --no-install-recommends \
python3 \
r-base \
emacs \
texlive-latex-extra \
texlive-science \
texlive-xetex \
texlive-luatex \
texlive-plain-generic \
latexmk
}


function ubuntu_20043_lts() {
echo "Installing dependencies (requires sudo privileges)"
apt-get update
Expand Down Expand Up @@ -43,6 +59,10 @@ function debian_11() {
ubuntu_20043_lts
}

function debian_12() {
debian_12_lts
}

function centos_8() {
echo "Installing dependencies (requires sudo privileges)"
dnf install -y \
Expand Down Expand Up @@ -126,12 +146,20 @@ function check_os_eval() {
os_installing
debian_11
;;
"12 (bookworm)")
os_installing
debian_12
;;
"")
case "$OS_PRETTY" in
"Debian GNU/Linux bullseye/sid")
os_installing
debian_11
;;
"Debian GNU/Linux 12 (bookworm)")
os_installing
debian_12
;;
*)
os_err
;;
Expand Down

0 comments on commit 241cbbc

Please sign in to comment.