diff --git a/tools/ChangeLog b/tools/ChangeLog index a04f2e90..df0c4e65 100644 --- a/tools/ChangeLog +++ b/tools/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 13 Mar 2009; Andrew Gaffney catalyst-auto: + Fix typo with multiple kernel code + 13 Mar 2009; Andrew Gaffney catalyst-auto: Add --test flag diff --git a/tools/catalyst-auto b/tools/catalyst-auto index 03694545..6834c49b 100755 --- a/tools/catalyst-auto +++ b/tools/catalyst-auto @@ -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}