summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-04-26 14:10:03 -0700
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>2016-04-26 21:23:10 +0000
commit371728917cd55262c2c6b54d21e58b52dd046eca (patch)
treea1b39bfda83088f74ce66a60a609b0131ced4138
parenttools-uclibc: have busybox use a savedconfig, bug #567598 (diff)
downloadreleng-371728917cd55262c2c6b54d21e58b52dd046eca.tar.gz
releng-371728917cd55262c2c6b54d21e58b52dd046eca.tar.bz2
releng-371728917cd55262c2c6b54d21e58b52dd046eca.zip
tools: stage4-only config that loads base amd64 config to avoid duplication
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--tools/catalyst-auto-amd64-stage4.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/catalyst-auto-amd64-stage4.conf b/tools/catalyst-auto-amd64-stage4.conf
new file mode 100644
index 00000000..73410465
--- /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: