diff options
Diffstat (limited to 'scripts/rawhide-rc.sh')
-rwxr-xr-x | scripts/rawhide-rc.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/rawhide-rc.sh b/scripts/rawhide-rc.sh new file mode 100755 index 000000000..221d89b3d --- /dev/null +++ b/scripts/rawhide-rc.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# Generate a commit for a rawhide RC release + +source scripts/kernel-version.sh + +make release +# fixup the release because rpmdev-bumpspec *sigh* +scripts/fixup-bumpspec.sh +fedpkg commit -c + +# Figure out what is our RC +RC=`grep kernel.spec "%define rcrev" | cut -d ' ' -f 3` +RC=$(($RC+1)) + +# Kill all patches +awk '!/patch/ { print $0 }' < sources > sources.tmp +mv sources.tmp sources + +# Grab the tarball +# FILL this in laura + +# bump rcrev in the spec and set git snapshot to 0 + +perl -p -i -e 's|%define rcrev.*|%global rcrev $ENV{'RC'}|' kernel.spec + +perl -p -i -e 's|%define gitrev.*|%define gitrev 0|' kernel.spec |