summaryrefslogtreecommitdiffstats
path: root/build-release
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-02-01 17:37:31 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-02-01 17:37:31 (EST)
commit798b792fa8087e0370ecb0c299612a8caf6aaa9c (patch)
treebed77fed2e2407eb6927bea0f692a84cf7f10daa /build-release
parentf0ad079cb93e3e6f87bafd04ed7508d77e022eb7 (diff)
downloadlibreboot-798b792fa8087e0370ecb0c299612a8caf6aaa9c.zip
libreboot-798b792fa8087e0370ecb0c299612a8caf6aaa9c.tar.gz
libreboot-798b792fa8087e0370ecb0c299612a8caf6aaa9c.tar.bz2
build-release: include the commitid file in the release archives
Diffstat (limited to 'build-release')
-rwxr-xr-xbuild-release12
1 files changed, 8 insertions, 4 deletions
diff --git a/build-release b/build-release
index a2ff513..7e89d20 100755
--- a/build-release
+++ b/build-release
@@ -383,9 +383,16 @@ rm -f libreboot_src/ich9fdgbe_4m.bin
rm -rf libreboot_src/tobuild/
rm -f libreboot_src/tobuild.tar.xz
-# delete the "commitid" file (releases are tagged in git)
+# delete the old commitid file
+rm -f commitid
rm -f libreboot_src/commitid
+# create file showing the commit ID from git for this archive.
+cat .git/refs/heads/master > commitid
+# include it in the release archives
+cp commitid libreboot_src/
+cp commitid libreboot_bin/
+
echo "Creating compressed libreboot_src release archive"
# create lzma compressed src archive
@@ -396,9 +403,6 @@ echo "Creating compressed libreboot_bin release archive"
# create lzma compressed bin archive
tar cfJ libreboot_bin.tar.xz libreboot_bin
-# create file showing the commit ID from git for this archive.
-cat .git/refs/heads/master > commitid
-
# ### Delete the uncompressed release directories
# ----------------------------------------------------------------------------------------------------------------------------