cookutils rev 620
cook: kvers set from installed/linux-api-headers/receipt if no wok/linux/receipt
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Thu Dec 05 22:23:26 2013 +0000 (2013-12-05) |
parents | 61cdcd51454d |
children | 00576a9b9138 |
files | cook |
line diff
1.1 --- a/cook Thu Dec 05 10:52:56 2013 +0000 1.2 +++ b/cook Thu Dec 05 22:23:26 2013 +0000 1.3 @@ -156,11 +156,14 @@ 1.4 if [ "$SOURCE" ]; then 1.5 source_stuff=$WOK/$SOURCE/stuff 1.6 fi 1.7 - # Kernel version is set from linux 1.8 + # Kernel version is set from wok/linux or installed/linux-api-headers(wok-undigest) 1.9 if [ -f "$WOK/linux/receipt" ]; then 1.10 kvers=$(grep ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2) 1.11 kbasevers=${kvers:0:3} 1.12 - fi 1.13 + elif [ -f "$INSTALLED/linux-api-headers/receipt" ]; then 1.14 + kvers=$(grep ^VERSION= $INSTALLED/linux-api-headers/receipt | cut -d '"' -f 2) 1.15 + kbasevers=${kvers:0:3} 1.16 + fi 1.17 # Python version 1.18 if [ -f "$WOK/python/receipt" ]; then 1.19 pyvers=$(grep ^VERSION= $WOK/python/receipt | cut -d '"' -f 2)