Blame SOURCES/generate_all_configs.sh

e8eba4
#!/bin/sh
e8eba4
e8eba4
# Adjusts the configuration options to build the variants correctly
e8eba4
0e3cd3
test -n "$RHTEST" && exit 0
e8eba4
0e3cd3
DEBUGBUILDSENABLED=$1
0e3cd3
if [ -z "$DEBUGBUILDSENABLED" ]; then
e8eba4
	exit 1
e8eba4
fi
e8eba4
0e3cd3
if [ -z "$FLAVOR" ]; then
0e3cd3
	FLAVOR=rhel
e8eba4
fi
e8eba4
0e3cd3
if [ "$FLAVOR" = "fedora" ]; then
e8eba4
	SECONDARY=rhel
e8eba4
else
e8eba4
	SECONDARY=fedora
e8eba4
fi
e8eba4
0e3cd3
for i in kernel-rt-*-"$FLAVOR".config; do
0e3cd3
	NEW=kernel-rt-"$SPECVERSION"-$(echo "$i" | cut -d - -f3- | sed s/-"$FLAVOR"//)
e8eba4
	#echo $NEW
e8eba4
	mv "$i" "$NEW"
e8eba4
done
e8eba4
e8eba4
rm -f kernel-rt-*-"$SECONDARY".config
e8eba4
e8eba4
if [ "$DEBUGBUILDSENABLED" -eq 0 ]; then
e8eba4
	for i in kernel-rt-*debug*.config; do
e8eba4
		base=$(echo "$i" | sed -r s/-?debug//g)
e8eba4
		NEW=kernel-rt-$(echo "$base" | cut -d - -f3-)
e8eba4
		mv "$i" "$NEW"
e8eba4
	done
e8eba4
fi