Gentoo Archives: gentoo-commits

From: "Andrew Gaffney (agaffney)" <agaffney@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] releng r620 - trunk/tools
Date: Mon, 02 Mar 2009 13:15:12
Message-Id: E1Le7zC-0000a1-Ne@stork.gentoo.org
1 Author: agaffney
2 Date: 2009-03-02 13:15:10 +0000 (Mon, 02 Mar 2009)
3 New Revision: 620
4
5 Modified:
6 trunk/tools/ChangeLog
7 trunk/tools/catalyst-auto
8 Log:
9 Process kconfig lines in a loop to handle specs with multiple kernels
10
11 Modified: trunk/tools/ChangeLog
12 ===================================================================
13 --- trunk/tools/ChangeLog 2009-03-01 16:59:39 UTC (rev 619)
14 +++ trunk/tools/ChangeLog 2009-03-02 13:15:10 UTC (rev 620)
15 @@ -2,6 +2,9 @@
16 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
17 # $Id$
18
19 + 02 Mar 2009; Andrew Gaffney <agaffney@g.o> catalyst-auto:
20 + Process kconfig lines in a loop to handle specs with multiple kernels
21 +
22 23 Jan 2009; Andrew Gaffney <agaffney@g.o> catalyst-auto-x86.conf:
23 Only sync stage3 tarballs and s/x86/i486/
24
25
26 Modified: trunk/tools/catalyst-auto
27 ===================================================================
28 --- trunk/tools/catalyst-auto 2009-03-01 16:59:39 UTC (rev 619)
29 +++ trunk/tools/catalyst-auto 2009-03-02 13:15:10 UTC (rev 620)
30 @@ -163,9 +163,11 @@
31
32 kconfig_line=$(grep '^boot/kernel/[^/]\+/config:' ${i})
33 if [ -n "${kconfig_line}" ]; then
34 - key=$(echo "${kconfig_line}" | cut -d: -f1)
35 - filename=$(basename $(echo "${kconfig_line}" | cut -d: -f2))
36 - sed -i "s|^${key}:.*\$|${key}: ${TMPDIR}/kconfig/${filename}|" ${i}
37 + echo "${kconfig_file}" | while read line; do
38 + key=$(echo "${line}" | cut -d: -f1)
39 + filename=$(basename $(echo "${line}" | cut -d: -f2))
40 + sed -i "s|^${key}:.*\$|${key}: ${TMPDIR}/kconfig/${filename}|" ${i}
41 + done
42 fi
43 done