diff options
-rwxr-xr-x | scripts/rawhide-rc.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/rawhide-rc.sh b/scripts/rawhide-rc.sh index 2e871ee8e..51a3b09f2 100755 --- a/scripts/rawhide-rc.sh +++ b/scripts/rawhide-rc.sh @@ -9,9 +9,11 @@ scripts/fixup-bumpspec.sh fedpkg commit -c # Figure out what is our RC -RC=`grep "%define rcrev" kernel.spec| cut -d ' ' -f 3` +RC=`grep "%global rcrev" kernel.spec| cut -d ' ' -f 3` RC=$(($RC+1)) BASE=`grep "%define base_sublevel" kernel.spec| cut -d ' ' -f 3` +# See comment in kernel.spec about the base numbering +BASE=$(($BASE+1)) # Kill all patches awk '!/patch/ { print $0 }' < sources > sources.tmp @@ -27,7 +29,7 @@ if [ ! -f patch-4.$BASE-rc$RC.xz ]; then fi # bump rcrev in the spec and set git snapshot to 0 -RC=$RC perl -p -i -e 's|%define rcrev.*|%global rcrev $ENV{'RC'}|' kernel.spec +RC=$RC perl -p -i -e 's|%global rcrev.*|%global rcrev $ENV{'RC'}|' kernel.spec perl -p -i -e 's|%define gitrev.*|%define gitrev 0|' kernel.spec |