1 |
commit: 43aa276417114d50600816e0d1aa044da99ca1f0 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 29 04:45:43 2020 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 29 19:37:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=43aa2764 |
7 |
|
8 |
catalyst-auto: Drop unnecessary spec munging |
9 |
|
10 |
No longer necessary with @TIMESTAMP@. |
11 |
|
12 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
13 |
|
14 |
tools/catalyst-auto | 18 ------------------ |
15 |
1 file changed, 18 deletions(-) |
16 |
|
17 |
diff --git a/tools/catalyst-auto b/tools/catalyst-auto |
18 |
index 2e449ea0..66ff5ecc 100755 |
19 |
--- a/tools/catalyst-auto |
20 |
+++ b/tools/catalyst-auto |
21 |
@@ -325,24 +325,6 @@ run_catalyst_commands() { |
22 |
|
23 |
# Fix up specs with datestamp |
24 |
for i in $(find -name '*.spec'); do |
25 |
- # Grab current version_stamp and source_subpath |
26 |
- old_version_stamp=$(grep version_stamp "${i}" | sed -e 's|^version_stamp: *||') |
27 |
- old_source_subpath=$(grep source_subpath "${i}" | sed -e 's|^source_subpath: *||') |
28 |
- |
29 |
- new_version_stamp=$(echo "${old_version_stamp}" | sed -e "s|^\(.*-\)\?.*$|\1${TIMESTAMP}|") |
30 |
- new_source_subpath=$(echo "${old_source_subpath}" | sed -e "s|${old_version_stamp}|${new_version_stamp}|") |
31 |
- |
32 |
- sed -i "s|^version_stamp:.*$|version_stamp: ${new_version_stamp}|" "${i}" |
33 |
- sed -i "s|^snapshot:.*$|snapshot: ${TIMESTAMP}|" "${i}" |
34 |
- |
35 |
- # We don't want to mangle the source_subpath for our stage1 spec |
36 |
- if ! grep -q '^target: *stage[14]$' "${i}"; then |
37 |
- sed -i "s|^source_subpath:.*$|source_subpath: ${new_source_subpath}|" "${i}" |
38 |
- fi |
39 |
- |
40 |
- sed -i "/^livecd\/iso/s|${old_version_stamp}|${new_version_stamp}|" "${i}" |
41 |
- sed -i "/^livecd\/volid/s|${old_version_stamp}|${new_version_stamp}|" "${i}" |
42 |
- |
43 |
kconfig_lines=$(grep '^boot/kernel/[^/]\+/config:' "${i}") |
44 |
if [[ -n ${kconfig_lines} ]]; then |
45 |
echo "${kconfig_lines}" | while read line; do |