diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-04-26 09:56:57 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-04-26 10:32:45 +0200 |
commit | dee033f97cfc9818bcf2143d79ff18726beb7c22 (patch) | |
tree | 8c471c55e47b769d087d3b0b23d09d05f64847c6 /docker | |
parent | f4df31d37e9192dfcbe0a6d97ae8634fe20dae08 (diff) | |
download | vyos-build-dee033f97cfc9818bcf2143d79ff18726beb7c22.tar.gz vyos-build-dee033f97cfc9818bcf2143d79ff18726beb7c22.zip |
Packages: use 'make kernelversion' instead of grep magic
Exract version by using the included "make kernelversion" instead of writing
a custom grep script that was used before.
VERSION=$(grep '^VERSION' Makefile | grep -Eo '[0-9]{1,4}')
PATCHLEVEL=$(grep '^PATCHLEVEL' Makefile | grep -Eo '[0-9]{1,4}')
SUBLEVEL=$(grep '^SUBLEVEL' Makefile | grep -Eo '[0-9]{1,4}')
$ make kernelversion
4.19.36
Diffstat (limited to 'docker')
0 files changed, 0 insertions, 0 deletions