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 changed files with 8 additions and 3 deletions
|
@ -2,6 +2,9 @@
|
||||||
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
||||||
# $Id$
|
# $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:
|
23 Jan 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto-x86.conf:
|
||||||
Only sync stage3 tarballs and s/x86/i486/
|
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})
|
kconfig_line=$(grep '^boot/kernel/[^/]\+/config:' ${i})
|
||||||
if [ -n "${kconfig_line}" ]; then
|
if [ -n "${kconfig_line}" ]; then
|
||||||
key=$(echo "${kconfig_line}" | cut -d: -f1)
|
echo "${kconfig_file}" | while read line; do
|
||||||
filename=$(basename $(echo "${kconfig_line}" | cut -d: -f2))
|
key=$(echo "${line}" | cut -d: -f1)
|
||||||
sed -i "s|^${key}:.*\$|${key}: ${TMPDIR}/kconfig/${filename}|" ${i}
|
filename=$(basename $(echo "${line}" | cut -d: -f2))
|
||||||
|
sed -i "s|^${key}:.*\$|${key}: ${TMPDIR}/kconfig/${filename}|" ${i}
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue