/
use-header
26 lines (21 loc) · 1000 Bytes
/
use-header
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
#!/bin/bash
#USE-Flag build tests for job @@JOB@@
trap "echo 'signal captured, exiting the entire script...'; exit" SIGHUP SIGINT SIGTERM
function tatt_pkg_error
{
local eout=${2}
echo "${eout}"
if [[ "${eout}" =~ REQUIRED_USE ]] ; then
echo "USE='${USE}' : REQUIRED_USE not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@
elif [[ "${eout}" =~ USE\ changes ]] ; then
echo "USE='${USE}' : USE dependencies not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@
elif [[ "${eout}" =~ keyword\ changes ]]; then
echo "USE='${USE}' : unkeyworded dependencies (probably) for ${1:?}" >> @@REPORTFILE@@
elif [[ "${eout}" =~ Error:\ circular\ dependencies: ]]; then
echo "USE='${USE}' : circular dependencies (probably) for ${1:?}" >> @@REPORTFILE@@
elif [[ "${eout}" =~ \[blocks\ B ]]; then
echo "USE='${USE}' : blocked packages (probably) for ${1:?}" >> @@REPORTFILE@@
else
echo "USE='${USE}' FEATURES='${FEATURES}' failed for ${1:?}" >> @@REPORTFILE@@
fi
}