summaryrefslogtreecommitdiffstats
path: root/scripts/rawhide-snapshot.sh
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2021-03-05 10:03:27 -0600
committerJustin M. Forbes <jforbes@fedoraproject.org>2021-03-05 10:03:27 -0600
commit3422e04a2e31dba3e17af206f160d4fc409f4250 (patch)
treeef03b0b60e236af96331d0ddb83208bb40bcf9f0 /scripts/rawhide-snapshot.sh
parent7a64d107da5cd0ea8bad9200ebcd37146324361f (diff)
downloadkernel-3422e04a2e31dba3e17af206f160d4fc409f4250.tar.gz
kernel-3422e04a2e31dba3e17af206f160d4fc409f4250.tar.xz
kernel-3422e04a2e31dba3e17af206f160d4fc409f4250.zip
kernel-5.11.3-50
* Fri Mar 05 2021 Justin M. Forbes <jforbes@fedoraproject.org> [5.11.3-50] - PCI: Add MCFG quirks for Tegra194 host controllers (Vidya Sagar) - Revert "PCI: Add MCFG quirks for Tegra194 host controllers" (Peter Robinson) - forgot to push this one earlier (Justin M. Forbes) - Reference the patch as version.patchlevel to more easily see diffs between stable releases (Justin M. Forbes) Resolves: rhbz# Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Diffstat (limited to 'scripts/rawhide-snapshot.sh')
-rwxr-xr-xscripts/rawhide-snapshot.sh66
1 files changed, 0 insertions, 66 deletions
diff --git a/scripts/rawhide-snapshot.sh b/scripts/rawhide-snapshot.sh
deleted file mode 100755
index 210216b98..000000000
--- a/scripts/rawhide-snapshot.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-# A coffeeproof rawhide script. You should be able to run this before the
-# coffee has kicked in and generate a good rawhide commit.
-#
-# - Updates the local Fedora tree to master and verifies that you are working
-# off of the correct master
-# - Updates the upstream tree to the latest master.
-# - Generates a git snapshot via generate-git-snapshot.sh
-# - Clears out old git snapshots from the sources
-# - Uploads the new snapshot
-
-source scripts/kernel-version.sh
-
-klist -s
-if [ ! $? -eq 0 ]; then
- echo "klist couldn't read the credential cache."
- echo "Do you need to fix your kerberos tokens?"
- exit 1
-fi
-
-git fetch origin
-if [ "$(git rev-parse origin/master)" != "$(git rev-parse HEAD)" ]; then
- echo "I just did a git fetch and this branch does not match master"
- echo "Re-check out this branch to work off of the latest master"
- exit 1
-fi
-
-if [ ! -d "$LINUX_GIT" ]; then
- echo "error: set \$LINUX_GIT to point at an upstream git tree"
- exit 1
-fi
-
-git -C $LINUX_GIT pull
-if [ ! $? -eq 0 ]; then
- echo "Git pull failed. Is your tree clean/correct?"
- exit 1
-fi
-
-git -C $LINUX_GIT describe --tags HEAD | grep -q "\-g"
-if [ ! $? -eq 0 ]; then
- echo "Trying to snapshot off of a tagged git."
- echo "I don't think this is what you want"
- exit 1
-fi
-
-if [ "$(git -C $LINUX_GIT rev-parse origin/master)" == `cat gitrev` ]; then
- echo "Last snapshot commit matches current master. Nothing to do"
- echo "\o/"
- exit 0
-fi
-
-GIT=`grep "%define gitrev" kernel.spec | cut -d ' ' -f 3`
-if [ "$GIT" -eq 0 ]; then
- make debug
- ./scripts/fixup-bumpspec.sh
- fedpkg commit -c
-fi
-
-./scripts/generate-git-snapshot.sh
-
-#Nuke the old patch from the source
-awk '!/git/ { print $0 }' < sources > sources.tmp
-mv sources.tmp sources
-
-GIT=`grep "%define gitrev" kernel.spec | cut -d ' ' -f 3`
-fedpkg upload patch-$VER-git$GIT.xz