Process kconfig lines in a loop to handle specs with multiple kernels
svn path=/trunk/; revision=620
This commit is contained in:
parent
6cd061bdad
commit
f4c2a46fa4
|
@ -2,6 +2,9 @@
|
|||
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Id$
|
||||
|
||||
02 Mar 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
|
||||
Process kconfig lines in a loop to handle specs with multiple kernels
|
||||
|
||||
23 Jan 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto-x86.conf:
|
||||
Only sync stage3 tarballs and s/x86/i486/
|
||||
|
||||
|
|
|
@ -163,9 +163,11 @@ for i in $(find -name '*.spec'); do
|
|||
|
||||
kconfig_line=$(grep '^boot/kernel/[^/]\+/config:' ${i})
|
||||
if [ -n "${kconfig_line}" ]; then
|
||||
key=$(echo "${kconfig_line}" | cut -d: -f1)
|
||||
filename=$(basename $(echo "${kconfig_line}" | cut -d: -f2))
|
||||
sed -i "s|^${key}:.*\$|${key}: ${TMPDIR}/kconfig/${filename}|" ${i}
|
||||
echo "${kconfig_file}" | while read line; do
|
||||
key=$(echo "${line}" | cut -d: -f1)
|
||||
filename=$(basename $(echo "${line}" | cut -d: -f2))
|
||||
sed -i "s|^${key}:.*\$|${key}: ${TMPDIR}/kconfig/${filename}|" ${i}
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue