1 |
Author: agaffney |
2 |
Date: 2008-12-02 23:03:57 +0000 (Tue, 02 Dec 2008) |
3 |
New Revision: 597 |
4 |
|
5 |
Modified: |
6 |
trunk/tools/ChangeLog |
7 |
trunk/tools/catalyst-auto |
8 |
Log: |
9 |
Change the handling of version_stamp a bit to preserve the existing prefix, such as hardened- |
10 |
|
11 |
Modified: trunk/tools/ChangeLog |
12 |
=================================================================== |
13 |
--- trunk/tools/ChangeLog 2008-12-02 22:46:44 UTC (rev 596) |
14 |
+++ trunk/tools/ChangeLog 2008-12-02 23:03:57 UTC (rev 597) |
15 |
@@ -2,6 +2,10 @@ |
16 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
17 |
# $Id$ |
18 |
|
19 |
+ 02 Dec 2008; Andrew Gaffney <agaffney@g.o> catalyst-auto: |
20 |
+ Change the handling of version_stamp a bit to preserve the existing |
21 |
+ prefix, such as hardened- |
22 |
+ |
23 |
01 Dec 2008; Andrew Gaffney <agaffney@g.o> |
24 |
catalyst-auto-sparc64.conf: |
25 |
Change paths for sparc64 to match bender setup |
26 |
|
27 |
Modified: trunk/tools/catalyst-auto |
28 |
=================================================================== |
29 |
--- trunk/tools/catalyst-auto 2008-12-02 22:46:44 UTC (rev 596) |
30 |
+++ trunk/tools/catalyst-auto 2008-12-02 23:03:57 UTC (rev 597) |
31 |
@@ -145,17 +145,20 @@ |
32 |
for i in $(find -name '*.spec'); do |
33 |
# Grab current version_stamp and source_subpath |
34 |
old_version_stamp=$(grep version_stamp ${i} | sed -e 's|^version_stamp: *||') |
35 |
- old_source_subpath=$(grep source_subpath ${i} | sed -e 's|^source_subpath: .\+-||') |
36 |
+ old_source_subpath=$(grep source_subpath ${i} | sed -e 's|^source_subpath: *||') |
37 |
|
38 |
- sed -i 's|^version_stamp:.*$|version_stamp: '${DATESTAMP}'|' ${i} |
39 |
+ new_version_stamp=$(echo "${old_version_stamp}" | sed -e 's|^\(.*-\)\?.*$|\1'${DATESTAMP}'|') |
40 |
+ new_source_subpath=$(echo "${old_source_subpath}" | sed -e 's|'${old_version_stamp}'$|\1'${new_version_stamp}'|') |
41 |
+ |
42 |
+ sed -i 's|^version_stamp:.*$|version_stamp: '${new_version_stamp}'|' ${i} |
43 |
sed -i 's|^snapshot:.*$|snapshot: '${DATESTAMP}'|' ${i} |
44 |
|
45 |
# We don't want to mangle the source_subpath for our stage1 spec |
46 |
if ! grep -q '^target: *stage1$' ${i}; then |
47 |
- sed -i 's|^source_subpath: \(.\+-\).\+$|source_subpath: \1'${DATESTAMP}'|' ${i} |
48 |
+ sed -i 's|^source_subpath:.*$|source_subpath: '${new_source_subpath}'|' ${i} |
49 |
fi |
50 |
|
51 |
- sed -i '/^livecd\/iso/s|'${old_version_stamp}'|'${DATESTAMP}'|' ${i} |
52 |
+ sed -i '/^livecd\/iso/s|'${old_version_stamp}'|'${new_version_stamp}'|' ${i} |
53 |
|
54 |
kconfig_line=$(grep '^boot/kernel/[^/]\+/config:' ${i}) |
55 |
if [ -n "${kconfig_line}" ]; then |