Skip to content

Commit 761886b

Browse files
committed
data/travis/setup.sh: add support for AlmaLinux 8-10
1 parent 846d595 commit 761886b

1 file changed

Lines changed: 42 additions & 12 deletions

File tree

data/travis/setup.sh

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,48 @@
33
set -e
44

55
if [ "$CUTTER_MASTER" = "yes" ] || [ "$CUTTER_MAIN" = "yes" ] ; then
6-
sudo apt update -qq
7-
sudo apt install -qq -y \
8-
autotools-dev \
9-
intltool \
10-
libsoup2.4-dev
11-
git clone --depth 1 https://github.com/clear-code/cutter.git
12-
cd cutter
13-
./autogen.sh
14-
./configure --prefix=/usr --localstatedir=/var --enable-debug
15-
make -j > /dev/null
16-
sudo make install > /dev/null
17-
cd ..
6+
if type apt > /dev/null 2>&1; then
7+
sudo apt update -qq
8+
sudo apt install -qq -y \
9+
autotools-dev \
10+
intltool \
11+
libsoup2.4-dev
12+
git clone --depth 1 https://github.com/clear-code/cutter.git
13+
cd cutter
14+
./autogen.sh
15+
./configure --prefix=/usr --localstatedir=/var --enable-debug
16+
make -j > /dev/null
17+
sudo make install > /dev/null
18+
cd ..
19+
else
20+
case $(. /etc/os-release && echo "${VERSION_ID}") in
21+
8.*)
22+
additional_repository=powertools
23+
;;
24+
*)
25+
additional_repository=crb
26+
;;
27+
esac
28+
sudo dnf install --enablerepo=${additional_repository} -y \
29+
autoconf \
30+
automake \
31+
diffutils \
32+
gcc \
33+
gcc-c++ \
34+
git \
35+
glib2-devel \
36+
gtk-doc \
37+
intltool \
38+
libtool \
39+
make
40+
git clone --depth 1 https://github.com/clear-code/cutter.git
41+
cd cutter
42+
./autogen.sh
43+
./configure --prefix=/usr --localstatedir=/var --enable-debug
44+
make -j > /dev/null
45+
sudo make install > /dev/null
46+
cd ..
47+
fi
1848
else
1949
distribution=$(lsb_release --short --id | tr 'A-Z' 'a-z')
2050
case $distribution in

0 commit comments

Comments
 (0)