summaryrefslogtreecommitdiffstats
path: root/generate_all_configs.sh
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2022-08-11 18:43:44 +0200
committerThorsten Leemhuis <fedora@leemhuis.info>2022-08-11 18:43:44 +0200
commitb0231ec39f58edcea8a0c1f4079f7900c9b90121 (patch)
tree6ac8d6a5eaf7543797c1fb18391240d500bf292c /generate_all_configs.sh
parent7927ca32f69a3545938286a205c10393c5ce79a4 (diff)
parentadb2f880bfab93f72a493aa6e5acfcf1aca6533d (diff)
downloadkernel-transition-user-thl-vanilla-fedora.tar.gz
kernel-transition-user-thl-vanilla-fedora.tar.xz
kernel-transition-user-thl-vanilla-fedora.zip
merge rawhide as of 5.19 and update to 5.19.1kernel-5.19.1-65.vanilla.1.fc36transition-user-thl-vanilla-fedora
Diffstat (limited to 'generate_all_configs.sh')
-rwxr-xr-xgenerate_all_configs.sh20
1 files changed, 8 insertions, 12 deletions
diff --git a/generate_all_configs.sh b/generate_all_configs.sh
index 9e3d5ecb7..099d9aada 100755
--- a/generate_all_configs.sh
+++ b/generate_all_configs.sh
@@ -1,30 +1,26 @@
#!/bin/sh
# Adjusts the configuration options to build the variants correctly
-#
-# arg1: configuration to go in the primary variant
-# arg2: are we only generating debug configs
+test -n "$RHTEST" && exit 0
-PRIMARY=$1
-DEBUGBUILDSENABLED=$2
-
-if [ -z "$2" ]; then
+DEBUGBUILDSENABLED=$1
+if [ -z "$DEBUGBUILDSENABLED" ]; then
exit 1
fi
-if [ -z "$PRIMARY" ]; then
- PRIMARY=rhel
+if [ -z "$FLAVOR" ]; then
+ FLAVOR=rhel
fi
-if [ "$PRIMARY" = "fedora" ]; then
+if [ "$FLAVOR" = "fedora" ]; then
SECONDARY=rhel
else
SECONDARY=fedora
fi
-for i in kernel-*-"$PRIMARY".config; do
- NEW=kernel-"$VERSION"-$(echo "$i" | cut -d - -f2- | sed s/-"$PRIMARY"//)
+for i in kernel-*-"$FLAVOR".config; do
+ NEW=kernel-"$SPECVERSION"-$(echo "$i" | cut -d - -f2- | sed s/-"$FLAVOR"//)
#echo $NEW
mv "$i" "$NEW"
done