1 |
commit: dda6889241e86d11f917c66a8df1883a0d315b2f |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 26 21:10:03 2016 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 21:10:03 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=dda68892 |
7 |
|
8 |
tools: stage4-only config that loads base amd64 config to avoid duplication |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
tools/catalyst-auto-amd64-stage4.conf | 24 ++++++++++++++++++++++++ |
13 |
1 file changed, 24 insertions(+) |
14 |
|
15 |
diff --git a/tools/catalyst-auto-amd64-stage4.conf b/tools/catalyst-auto-amd64-stage4.conf |
16 |
new file mode 100644 |
17 |
index 0000000..7341046 |
18 |
--- /dev/null |
19 |
+++ b/tools/catalyst-auto-amd64-stage4.conf |
20 |
@@ -0,0 +1,24 @@ |
21 |
+# This is the config file for the catalyst-auto script. It should be pretty |
22 |
+# self-explanatory. |
23 |
+ |
24 |
+B=`readlink -f $0` |
25 |
+BASECONF=${B/-daily} |
26 |
+if [ ! -e $BASECONF ]; then |
27 |
+ echo "Could not find base config from $B" 1>&2 |
28 |
+ exit 1 |
29 |
+fi |
30 |
+source ${BASECONF} |
31 |
+for s in $SETS ; do |
32 |
+ var=SET_${s}_SPECS |
33 |
+ val=${!var} |
34 |
+ newval= |
35 |
+ for spec in $val ; do |
36 |
+ case $spec in |
37 |
+ *stage4*) newval="${newval} $spec" ;; |
38 |
+ esac |
39 |
+ done |
40 |
+ eval "export $var='${newval}'" |
41 |
+done |
42 |
+printenv |grep SET |
43 |
+ |
44 |
+# vim:ft=sh: |