summaryrefslogtreecommitdiff
path: root/SOURCES/generate_all_configs.sh
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2023-05-19 17:48:22 +0200
committerJan200101 <sentrycraft123@gmail.com>2023-05-19 17:48:22 +0200
commit84b128190f4e03de9c258fbf515757964401d253 (patch)
tree14b7fa10e8ae70738b757833db9eaa279599bcdb /SOURCES/generate_all_configs.sh
parent9ed420883ade242a0ab4aead5ff7fb6cb7184a6d (diff)
downloadkernel-fsync-84b128190f4e03de9c258fbf515757964401d253.tar.gz
kernel-fsync-84b128190f4e03de9c258fbf515757964401d253.zip
kernel 6.3.3
Diffstat (limited to 'SOURCES/generate_all_configs.sh')
-rwxr-xr-xSOURCES/generate_all_configs.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/SOURCES/generate_all_configs.sh b/SOURCES/generate_all_configs.sh
index 099d9aa..7a75830 100755
--- a/SOURCES/generate_all_configs.sh
+++ b/SOURCES/generate_all_configs.sh
@@ -19,18 +19,19 @@ else
SECONDARY=fedora
fi
-for i in kernel-*-"$FLAVOR".config; do
- NEW=kernel-"$SPECVERSION"-$(echo "$i" | cut -d - -f2- | sed s/-"$FLAVOR"//)
- #echo $NEW
+# The +1 is to remove the - at the end of the SPECPACKAGE_NAME string
+specpackage_name_len=$((${#SPECPACKAGE_NAME} + 1))
+for i in ${SPECPACKAGE_NAME}*-"$FLAVOR".config; do
+ NEW=${SPECPACKAGE_NAME}-"$SPECRPMVERSION"-$(echo ${i:$specpackage_name_len} | sed s/-"$FLAVOR"//)
mv "$i" "$NEW"
done
rm -f kernel-*-"$SECONDARY".config
if [ "$DEBUGBUILDSENABLED" -eq 0 ]; then
- for i in kernel-*debug*.config; do
+ for i in ${SPECPACKAGE_NAME}-*debug*.config; do
base=$(echo "$i" | sed -r s/-?debug//g)
- NEW=kernel-$(echo "$base" | cut -d - -f2-)
+ NEW=${SPECPACKAGE_NAME}-$(echo "$base" | cut -d - -f2-)
mv "$i" "$NEW"
done
fi