commit:     dda6889241e86d11f917c66a8df1883a0d315b2f
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 26 21:10:03 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Apr 26 21:10:03 2016 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=dda68892

tools: stage4-only config that loads base amd64 config to avoid duplication

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 tools/catalyst-auto-amd64-stage4.conf | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/tools/catalyst-auto-amd64-stage4.conf 
b/tools/catalyst-auto-amd64-stage4.conf
new file mode 100644
index 0000000..7341046
--- /dev/null
+++ b/tools/catalyst-auto-amd64-stage4.conf
@@ -0,0 +1,24 @@
+# This is the config file for the catalyst-auto script. It should be pretty
+# self-explanatory.
+
+B=`readlink -f $0`
+BASECONF=${B/-daily}
+if [ ! -e $BASECONF ]; then
+       echo "Could not find base config from $B" 1>&2
+       exit 1
+fi
+source ${BASECONF}
+for s in $SETS ; do
+       var=SET_${s}_SPECS
+       val=${!var}
+       newval=
+       for spec in $val ; do
+               case $spec in
+                       *stage4*) newval="${newval} $spec" ;;
+               esac
+       done
+       eval "export $var='${newval}'"
+done
+printenv |grep SET
+
+# vim:ft=sh:

Reply via email to