Process kconfig lines in a loop to handle specs with multiple kernels

svn path=/trunk/; revision=620
This commit is contained in:
Andrew Gaffney 2009-03-02 13:15:10 +00:00
parent 6cd061bdad
commit f4c2a46fa4
2 changed files with 8 additions and 3 deletions

View file

@ -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/

View file

@ -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