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

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2016-04-26 14:10:03 -07:00
parent b09f67a96e
commit dda6889241
No known key found for this signature in database
GPG key ID: 19395F23C58826C4

View file

@ -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: