5 [[ -d ${0%/*} ]] && cd ${0%/*}
12 NCPU
=$
(getconf _NPROCESSORS_ONLN
)
14 if ! [[ $TESTS ]]; then
15 # GitHub workflows fetch a clone of the dracut repository which doesn't
16 # contain git tags, thus "breaking" the RPM build in certain situations
18 # DRACUT_MAIN_VERSION in Makefile is defined as an output of `git describe`,
19 # which in full git clone returns a tag with a numeric version. However,
20 # without tags it returns SHA of the last commit, which later propagates into
21 # `Provides:` attribute of the built RPM and can break dependency tree when
23 [[ -d .git
]] && git fetch
--tags && git describe
--tags
24 make -j$NCPU all syncheck rpm logtee
26 if [[ $TESTS == "99" ]]; then
27 [[ -d .git
]] && git fetch
--tags && git describe
--tags
33 make -j$NCPU enable_documentation
=$make_docs all logtee
37 time LOGTEE_TIMEOUT_MS
=590000 make \
38 enable_documentation
=$make_docs \
39 KVERSION
=$
(rpm
-qa kernel
--qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' |
sort -rn |
head -1) \
42 ${TESTS:+TESTS="$TESTS"} \