From eb17d7ebff45fce426299ac09813dafcef1a0808 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Mon, 28 Sep 2015 10:14:34 -0400 Subject: 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. --- gitrev | 1 + scripts/generate-git-snapshot.sh | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 gitrev diff --git a/gitrev b/gitrev new file mode 100644 index 000000000..db57bb962 --- /dev/null +++ b/gitrev @@ -0,0 +1 @@ +bcee19f424a0d8c26ecf2607b73c690802658b29 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 -- cgit