Fix Makefile grep instances.
This commit is contained in:
parent
37475beac1
commit
a2df03b5d1
@ -6,12 +6,12 @@
|
||||
# Copyright 2023 Inference
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
|
||||
# Version: 1.0.1.8
|
||||
# Version: 1.0.2.9
|
||||
|
||||
|
||||
major=$(cat Makefile | grep "VERSION = " | sed 's/VERSION = //g')
|
||||
minor=$(cat Makefile | grep "PATCHLEVEL = " | sed 's/PATCHLEVEL = //g')
|
||||
patch=$(cat Makefile | grep "SUBLEVEL = " | sed 's/SUBLEVEL = //g')
|
||||
major=$(cat Makefile | grep -m 1 "VERSION = " | sed 's/VERSION = //g')
|
||||
minor=$(cat Makefile | grep -m 1 "PATCHLEVEL = " | sed 's/PATCHLEVEL = //g')
|
||||
patch=$(cat Makefile | grep -m 1 "SUBLEVEL = " | sed 's/SUBLEVEL = //g')
|
||||
localversion=$(cat .config | grep "CONFIG_LOCALVERSION=" | sed 's/CONFIG_LOCALVERSION="//g' | sed 's/"//g')
|
||||
|
||||
KVER=$major.$minor.$patch$localversion
|
||||
|
Loading…
x
Reference in New Issue
Block a user