tools: allow kernel version commit description format to be vX.Y.Z as well as X.Y.Z

This commit is contained in:
MilhouseVH 2017-09-04 23:43:31 +01:00
parent fe3d5c2e5d
commit c7f880b802

View File

@ -83,6 +83,7 @@ elif [ -z "${KERNEL}" ]; then
BASEREV="linux-stable/linux-${BRANCH}.y" BASEREV="linux-stable/linux-${BRANCH}.y"
else else
BASEREV="$(git log --grep "Linux ${KERNEL}" --pretty=oneline | head -1)" BASEREV="$(git log --grep "Linux ${KERNEL}" --pretty=oneline | head -1)"
[ -z "${BASEREV}" ] && BASEREV="$(git log --grep "Linux v${KERNEL}" --pretty=oneline | head -1)"
[ -z "${BASEREV}" ] && { echo "Unable to determine base revision for BRANCH=${BRANCH}, KERNEL=${KERNEL}"; exit 1; } [ -z "${BASEREV}" ] && { echo "Unable to determine base revision for BRANCH=${BRANCH}, KERNEL=${KERNEL}"; exit 1; }
echo echo