#!/usr/bin/env bash FORCE_UNSAFE_CONFIGURE=1 \ ./configure --prefix=/usr make :>/tmp/tar_make_check.log if ! make check | tee /tmp/tar_make_check.log then grep FAILED /tmp/tar_make_check.log | cut -d' ' -f 2-4 | while IFS= read -r failure do echo "${failure}" case ${failure} in capabilities*restore) echo "One test, capabilities: binary store/restore, is known to fail if it is run because LFS lacks selinux." continue ;; *) echo "Critical error in tests : ${failure}" exit 1 ;; esac done fi make install make -C doc install-html docdir=/usr/share/doc/tar-1.35