blob: 11c063b4810db3393ed21c0f2188d288b361d36f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/usr/bin/bash
set -e
set -o pipefail
CPUS=$(grep processor /proc/cpuinfo | wc -l)
# Use grouped output messages
infobegin() {
echo "::group::${1}"
}
infoend() {
echo "::endgroup::"
}
if [ -f autogen.sh ]; then
if [ "$DISTRO" = "fedora" ]; then
# disable pt language for help in search tool
# See: https://github.com/itstool/itstool/issues/36
infobegin "Apply Portuguese gsearchtool help workaround"
sed -i 's/^IGNORE_HELP_LINGUAS =.*$/IGNORE_HELP_LINGUAS = pt/' gsearchtool/help/Makefile.am
infoend
fi
infobegin "Configure (autotools)"
NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr --enable-compile-warnings=maximum || {
cat config.log
exit 1
}
infoend
infobegin "Build (autotools)"
make -j ${CPUS}
infoend
infobegin "Check (autotools)"
make -j ${CPUS} check || {
true
}
infoend
infobegin "Distcheck (autotools)"
make -j ${CPUS} distcheck
infoend
fi
|