File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33set -e
44
55if [ " $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
1848else
1949 distribution=$( lsb_release --short --id | tr ' A-Z' ' a-z' )
2050 case $distribution in
You can’t perform that action at this time.
0 commit comments