Fix typo with multiple kernel code

svn path=/trunk/; revision=623
This commit is contained in:
Andrew Gaffney 2009-03-13 12:51:55 +00:00
parent cccf5459c3
commit 928ea3e580
2 changed files with 6 additions and 3 deletions

View file

@ -2,6 +2,9 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Id$
13 Mar 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
Fix typo with multiple kernel code
13 Mar 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
Add --test flag

View file

@ -166,9 +166,9 @@ for i in $(find -name '*.spec'); do
sed -i '/^livecd\/iso/s|'${old_version_stamp}'|'${new_version_stamp}'|' ${i}
kconfig_line=$(grep '^boot/kernel/[^/]\+/config:' ${i})
if [ -n "${kconfig_line}" ]; then
echo "${kconfig_file}" | while read line; do
kconfig_lines=$(grep '^boot/kernel/[^/]\+/config:' ${i})
if [ -n "${kconfig_lines}" ]; then
echo "${kconfig_lines}" | 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}