summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@fedoraproject.org>2015-09-28 10:14:34 -0400
committerJosh Boyer <jwboyer@fedoraproject.org>2015-09-28 10:14:34 -0400
commiteb17d7ebff45fce426299ac09813dafcef1a0808 (patch)
treecb009a2f1de7a867e5a9dcd55457a5d17b6b746c /scripts
parent8b4bb52cfd57c8999cfb991718216c9eb75cd1b1 (diff)
downloadkernel-eb17d7ebff45fce426299ac09813dafcef1a0808.tar.gz
kernel-eb17d7ebff45fce426299ac09813dafcef1a0808.tar.xz
kernel-eb17d7ebff45fce426299ac09813dafcef1a0808.zip
Save the full sha1sum of the commit we generate patch-4.y-*-gitN from
We save off the top commit into a new file called 'gitrev'. This will help us automate exploded tree creation by providing a simple file to read to get the exact upstream commit to use as the base.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-git-snapshot.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/generate-git-snapshot.sh b/scripts/generate-git-snapshot.sh
index ec0d702ef..3da20a1b1 100755
--- a/scripts/generate-git-snapshot.sh
+++ b/scripts/generate-git-snapshot.sh
@@ -19,9 +19,11 @@ pushd $LINUX_GIT
git diff v$VER.. > /tmp/patch-$VER-git$NEWGIT
xz -9 /tmp/patch-$VER-git$NEWGIT
DESC=$(git describe)
+git rev-list --max-count=1 HEAD > /tmp/gitrev
popd
mv /tmp/patch-$VER-git$NEWGIT.xz .
+mv /tmp/gitrev .
perl -p -i -e 's|%global baserelease.*|%global baserelease 0|' kernel.spec