Blame SOURCES/generate_all_configs.sh

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