kernel/scripts/kernel-version.sh
Laura Abbott 0757590438 Update snapshot script for new sources format
The sources format switched to sha512. Update the parsing to get the
kernel version from this.
2017-02-23 15:09:44 -08:00

9 lines
258 B
Bash

VER=$(grep patch sources | head -n1 | awk '{ print $2 }' | sed s/patch-// | sed s/-git.*// | sed s/.xz// | tr -d "()")
if [ -z "$VER" ] ;
then
VER=$(grep linux sources | head -1 | awk '{ print $2 }' | sed s/linux-// | sed s/.tar.xz// | tr -d "()")
fi