3 # First argument is the path to the kernel headers.
6 if [ ! -f "${KPATH}/include/generated/utsrelease.h" ]; then
11 # Assuming KPATH is the target kernel headers directory
12 UTS_RELEASE
=$
(sed -rn 's/^#define UTS_RELEASE "(.*)"/\1/p' "${KPATH}/include/generated/utsrelease.h")
13 FEDORA_VERSION
=$
(echo "${UTS_RELEASE}" |
sed -n 's/.*\.fc\([0-9]*\)\..*/\1/p')
15 if [ "x${FEDORA_VERSION}" = "x" ]; then
20 FEDORA_REVISION_VERSION
=$
(echo "${UTS_RELEASE}" |
sed -n 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\-\([0-9]*\).*/\4/p')
21 echo "${FEDORA_REVISION_VERSION}"
This page took 0.030274 seconds and 4 git commands to generate.