From aa6d9438d030fa4682d5d450481085c901503da5 Mon Sep 17 00:00:00 2001 From: "Justin M. Forbes" Date: Mon, 12 Oct 2020 08:20:43 -0500 Subject: kernel-5.9.0-35 * Mon Oct 12 2020 Fedora Kernel Team [5.9.0-35] - Filter out LTO build options from the perl ccopts ("Justin M. Forbes") - Temporarily remove cdomain from sphinx documentation ("Justin M. Forbes") - Work around for gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96377 ("Justin M. Forbes") Resolves: rhbz# Signed-off-by: Justin M. Forbes --- generate_all_configs.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'generate_all_configs.sh') diff --git a/generate_all_configs.sh b/generate_all_configs.sh index 969ecaa96..9e3d5ecb7 100755 --- a/generate_all_configs.sh +++ b/generate_all_configs.sh @@ -9,7 +9,7 @@ PRIMARY=$1 DEBUGBUILDSENABLED=$2 -if [ -z $2 ]; then +if [ -z "$2" ]; then exit 1 fi @@ -17,24 +17,24 @@ if [ -z "$PRIMARY" ]; then PRIMARY=rhel fi -if [ "$PRIMARY" == "fedora" ]; then +if [ "$PRIMARY" = "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-*-"$PRIMARY".config; do + NEW=kernel-"$VERSION"-$(echo "$i" | cut -d - -f2- | sed s/-"$PRIMARY"//) #echo $NEW - mv $i $NEW + mv "$i" "$NEW" done -rm -f kernel-*-$SECONDARY.config +rm -f kernel-*-"$SECONDARY".config -if [ $DEBUGBUILDSENABLED -eq 0 ]; then +if [ "$DEBUGBUILDSENABLED" -eq 0 ]; then for i in kernel-*debug*.config; do - base=`echo $i | sed -r s/-?debug//g` - NEW=kernel-`echo $base | cut -d - -f2-` - mv $i $NEW + base=$(echo "$i" | sed -r s/-?debug//g) + NEW=kernel-$(echo "$base" | cut -d - -f2-) + mv "$i" "$NEW" done fi -- cgit