-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildenv
42 lines (33 loc) · 1.08 KB
/
buildenv
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
# bump: libtool-version /LIBTOOL_VERSION="(.*)"/ https://ftp.gnu.org/gnu/libtool/|re:/libtool-([\d.]+).tar.gz/$1/|semver:*
LIBTOOL_VERSION="2.4"
export ZOPEN_BUILD_LINE="STABLE"
export ZOPEN_STABLE_URL="https://ftp.gnu.org/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz"
export ZOPEN_STABLE_DEPS="curl gzip make m4 perl autoconf coreutils zoslib"
export ZOPEN_DEV_URL="https://github.com/autotools-mirror/libtool.git"
export ZOPEN_DEV_DEPS="git make m4 perl autoconf automake help2man texinfo xz coreutils zoslib"
export ZOPEN_EXTRA_CFLAGS=""
export ZOPEN_EXTRA_LDFLAGS=""
if [ "${ZOPEN_BUILD_LINE}x" = "STABLEx" ]; then
export ZOPEN_BOOTSTRAP=skip
fi
zopen_check_results()
{
chk="$1/$2_check.log"
totalTests=$(egrep "PASS:|FAIL:" $chk | cut -f1 -d " "| wc -w)
failures=$(egrep "FAIL:" $chk | cut -f1 -d " " | wc -w)
cat <<TEST
actualFailures:$failures
totalTests:$totalTests
expectedFailures:20
TEST
}
zopen_append_to_env()
{
cat <<EOF
export ACLOCAL_PATH="\${PWD}/share/aclocal:\$ACLOCAL_PATH"
EOF
}
zopen_get_version()
{
./libtool --version | head -1 | cut -f4 -d' '
}