diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-02-15 18:38:43 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-02-15 18:38:43 (EST) |
commit | a55af2297d094cf0e6ea2874ac63aa70134ef30e (patch) | |
tree | f12b932c0b0a60d0338419cccc52a9e002f3ca78 | |
parent | a0654f7988a8f137ed52a1de28ee3b12a952a7d3 (diff) | |
download | libreboot-a55af2297d094cf0e6ea2874ac63aa70134ef30e.zip libreboot-a55af2297d094cf0e6ea2874ac63aa70134ef30e.tar.gz libreboot-a55af2297d094cf0e6ea2874ac63aa70134ef30e.tar.bz2 |
scripts/helpers/build/release: Move docs to separate archive
Don't include the documentation in libreboot_src or libreboot_util
but instead create a libreboot_docs archive. Most people who use
libreboot will be looking at the live documentation on the main
website, so having the docs in the release archives just means
wasted bandwidth.
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/release/archives | 40 |
2 files changed, 28 insertions, 14 deletions
@@ -7,6 +7,7 @@ /bin/ /libreboot_src.tar.xz /libreboot_util.tar.xz +/libreboot_docs.tar.xz /libreboot_macbook21.tar.xz /libreboot_qemu_i440fx_piix4.tar.xz /libreboot_qemu_q35_ich9.tar.xz @@ -18,6 +19,7 @@ /libreboot_x60.tar.xz /libreboot_util/ /libreboot_src/ +/libreboot_docs/ /release/ /resources/utilities/ich9deblob/factory.rom /resources/utilities/ich9deblob/deblobbed_descriptor.bin diff --git a/resources/scripts/helpers/build/release/archives b/resources/scripts/helpers/build/release/archives index b488b6d..fa666aa 100755 --- a/resources/scripts/helpers/build/release/archives +++ b/resources/scripts/helpers/build/release/archives @@ -40,6 +40,12 @@ else exit 1 fi +# ### Version information for this release +# ---------------------------------------------------------------------------------------------------------------------------- + +# create file showing the commit ID from git for this archive. +cat .git/refs/heads/master > commitid + # ### Delete old archives before continuing # ---------------------------------------------------------------------------------------------------------------------------- @@ -56,6 +62,24 @@ mkdir release/rom/ # Get manifest which will be used to copy everything find -maxdepth 1 > releasefilelist +# ### Prepare libreboot_docs archive ready for release +# ---------------------------------------------------------------------------------------------------------------------------- + +cd release/ + +mkdir libreboot_docs/ + +cp -r ../docs/ libreboot_docs/ +cat ../commitid > libreboot_docs/commitid + +# create lzma compressed docs archive +tar -c libreboot_docs | xz -9e >../libreboot_docs.tar.xz + +# the directory is no longer needed +rm -rf libreboot_docs/ + +cd ../ + # ### Prepare libreboot_src archive ready for release # ---------------------------------------------------------------------------------------------------------------------------- @@ -63,9 +87,8 @@ mkdir libreboot_src for resource in $(cat releasefilelist) do - if [ "$resource" != "." ] - then - cp -r $resource libreboot_src + if [ "$resource" != "." ] && [ "$resource" != "./docs" ]; then + cp -r $resource libreboot_src fi done @@ -115,12 +138,6 @@ cd ../ cd ../ -# ### Version information for this release -# ---------------------------------------------------------------------------------------------------------------------------- - -# create file showing the commit ID from git for this archive. -cat .git/refs/heads/master > commitid - # ### Prepare ROM archives ready for release # ---------------------------------------------------------------------------------------------------------------------------- @@ -307,11 +324,6 @@ rm -rf cbmem mv cbmem_ cbmem cd ../../ -# --------------------- -# Include documentation -# --------------------- -cp -r docs/ libreboot_util/ - # ------------- # Miscellaneous # ------------- |