|
@@ -14,8 +14,9 @@ LF='
|
|
# otherwise try to get the version from the kernel Makefile
|
|
# otherwise try to get the version from the kernel Makefile
|
|
#
|
|
#
|
|
if test -d ../../.git -o -f ../../.git &&
|
|
if test -d ../../.git -o -f ../../.git &&
|
|
- VN=$(echo $(git tag -l "v[0-9].[0-9]*" | tail -1)"-g"$(git log -1 --abbrev=4 --pretty=format:"%h" HEAD) 2>/dev/null)
|
|
|
|
|
|
+ VN=$(git tag 2>/dev/null | tail -1 | grep -E "v[0-9].[0-9]*")
|
|
then
|
|
then
|
|
|
|
+ VN=$(echo $VN"-g"$(git log -1 --abbrev=4 --pretty=format:"%h" HEAD))
|
|
VN=$(echo "$VN" | sed -e 's/-/./g');
|
|
VN=$(echo "$VN" | sed -e 's/-/./g');
|
|
else
|
|
else
|
|
VN=$(MAKEFLAGS= make -sC ../.. kernelversion)
|
|
VN=$(MAKEFLAGS= make -sC ../.. kernelversion)
|