Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 88987
Collapse All | Expand All

(-)genkernel-3.1.6/gen_determineargs.sh (-1 / +6 lines)
Lines 3-14 Link Here
3
get_KV() {
3
get_KV() {
4
	local SUB
4
	local SUB
5
	local EXV
5
	local EXV
6
	local LOV
6
	
7
	
7
	VER=`grep ^VERSION\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
8
	VER=`grep ^VERSION\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
8
	PAT=`grep ^PATCHLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
9
	PAT=`grep ^PATCHLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
9
	SUB=`grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
10
	SUB=`grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
10
	EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"`
11
	EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"`
11
	KV=${VER}.${PAT}.${SUB}${EXV}
12
	LOV=`grep ^CONFIG_LOCALVERSION\= ${KERNEL_DIR}/.config | sed -e "s/CONFIG_LOCALVERSION=\"\(.*\)\"/\1/"`
13
14
	echo localversion is ${LOV}
15
16
	KV=${VER}.${PAT}.${SUB}${EXV}${LOV}
12
}
17
}
13
18
14
determine_real_args() {
19
determine_real_args() {
(-)genkernel-3.1.6/genkernel (-1 / +8 lines)
Lines 1-7 Link Here
1
#!/bin/bash
1
#!/bin/bash
2
# Genkernel v3
2
# Genkernel v3
3
3
4
GK_V='3.1.5'
4
GK_V='3.1.6'
5
TEMP='/var/tmp/genkernel'
5
TEMP='/var/tmp/genkernel'
6
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.
6
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.
7
7
Lines 143-148 Link Here
143
then
143
then
144
	# Configure kernel
144
	# Configure kernel
145
	config_kernel
145
	config_kernel
146
	
147
	# Kernel config may have changed CONFIG_LOCALVERSION
148
	KV_PRECONFIG=${KV}
149
	get_KV
150
	if [ ${KV} != ${KV_PRECONFIG} ] ; then
151
		NORMAL=${BOLD} print_info 1 "Kernel version changed from ${BOLD}${KV_PRECONFIG}${NORMAL} to ${BOLD}${KV}${NORMAL} during config."
152
	fi
146
153
147
	# Make deps
154
	# Make deps
148
	compile_dep
155
	compile_dep

Return to bug 88987