diff options
author | Laura Abbott <labbott@fedoraproject.org> | 2016-10-07 13:59:14 -0700 |
---|---|---|
committer | Laura Abbott <labbott@fedoraproject.org> | 2016-10-10 16:50:38 -0700 |
commit | 2f50aa19db3b3de4c7fc03a6299fe54d3aa35552 (patch) | |
tree | 65d866eebaf71b8f80094790d1a2bdeeafefb992 /scripts/kernel-version.sh | |
parent | da8efd59dbeb7d3912641d1543af457d14cdf5e3 (diff) | |
download | kernel-2f50aa19db3b3de4c7fc03a6299fe54d3aa35552.tar.gz kernel-2f50aa19db3b3de4c7fc03a6299fe54d3aa35552.tar.xz kernel-2f50aa19db3b3de4c7fc03a6299fe54d3aa35552.zip |
Add scripts for automatically generating builds
Many of the steps for day-to-day updates still require a lot of
manual steps which can lead to typos. Add a series of scripts to
make automate the manual steps and hopefully reduce errors. These
are a work in progress because having them in tree makes it easier
to work out issues.
Diffstat (limited to 'scripts/kernel-version.sh')
-rw-r--r-- | scripts/kernel-version.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/kernel-version.sh b/scripts/kernel-version.sh new file mode 100644 index 000000000..36e00194b --- /dev/null +++ b/scripts/kernel-version.sh @@ -0,0 +1,8 @@ +VER=$(grep patch sources | head -n1 | awk '{ print $2 }' | sed s/patch-// | sed s/-git.*// | sed s/.xz//) + +if [ -z "$VER" ] ; +then + VER=$(grep linux sources | head -1 | awk '{ print $2 }' | sed s/linux-// | sed s/.tar.xz//) +fi + + |