summaryrefslogtreecommitdiffstats
path: root/scripts/rawhide-rc.sh
diff options
context:
space:
mode:
authorLaura Abbott <labbott@fedoraproject.org>2016-10-07 13:59:14 -0700
committerLaura Abbott <labbott@fedoraproject.org>2016-10-10 16:50:38 -0700
commit2f50aa19db3b3de4c7fc03a6299fe54d3aa35552 (patch)
tree65d866eebaf71b8f80094790d1a2bdeeafefb992 /scripts/rawhide-rc.sh
parentda8efd59dbeb7d3912641d1543af457d14cdf5e3 (diff)
downloadkernel-2f50aa19db3b3de4c7fc03a6299fe54d3aa35552.tar.gz
kernel-2f50aa19db3b3de4c7fc03a6299fe54d3aa35552.tar.xz
kernel-2f50aa19db3b3de4c7fc03a6299fe54d3aa35552.zip
Add scripts for automatically generating builds
Many of the steps for day-to-day updates still require a lot of manual steps which can lead to typos. Add a series of scripts to make automate the manual steps and hopefully reduce errors. These are a work in progress because having them in tree makes it easier to work out issues.
Diffstat (limited to 'scripts/rawhide-rc.sh')
-rwxr-xr-xscripts/rawhide-rc.sh26
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