summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-02-14 23:58:49 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-02-14 23:58:49 (EST)
commit465793c516c583030207220ad80f1bfcb387adc3 (patch)
tree5b67e21b094a742c445877d78f582ba9e8e8cbb0 /resources/scripts/helpers/build
parentb840755acc24f5cebe561d5ecb3380e157de1583 (diff)
downloadlibreboot-465793c516c583030207220ad80f1bfcb387adc3.zip
libreboot-465793c516c583030207220ad80f1bfcb387adc3.tar.gz
libreboot-465793c516c583030207220ad80f1bfcb387adc3.tar.bz2
build-release: Move the release archives to release/
Diffstat (limited to 'resources/scripts/helpers/build')
-rwxr-xr-xresources/scripts/helpers/build/release/archives20
1 files changed, 20 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/release/archives b/resources/scripts/helpers/build/release/archives
index 49a1d4d..791db75 100755
--- a/resources/scripts/helpers/build/release/archives
+++ b/resources/scripts/helpers/build/release/archives
@@ -47,6 +47,11 @@ echo "Deleting old release archives"
rm -f libreboot_*.tar.xz
rm -f tobuild.tar.xz
+rm -rf release/
+
+# create directory for the release
+mkdir release/
+mkdir release/rom/
# Get manifest which will be used to copy everything
find -maxdepth 1 > releasefilelist
@@ -130,6 +135,9 @@ do
# delete. no longer needed
rm -f "$board"/commitid
+
+ # move the ROM images to the release/ directory
+ mv ../libreboot_"$board".tar.xz ../release/rom/
done
cd ../
@@ -370,6 +378,15 @@ tar -c libreboot_src | xz -9e >libreboot_src.tar.xz
# create lzma compressed util archive
tar -c libreboot_util | xz -9e >libreboot_util.tar.xz
+# Move the archives to the release directory
+mv libreboot_src.tar.xz release/
+mv libreboot_util.tar.xz release/
+
+# Create a symlink to the commitid file, in release/
+cd release/
+ln -s ../commitid commitid
+cd ../
+
# ### Delete the uncompressed release directories
# ----------------------------------------------------------------------------------------------------------------------------
@@ -380,6 +397,9 @@ rm -rf libreboot_util
# For those utilities that have to be built on the target
./build external source
+# Move the archive to the release directory
+mv tobuild.tar.xz release/
+
# DONE. See libreboot_src.tar.xz and libreboot_util.tar.xz
# NOTE FOR FCHMMR: don't forget to add ARM binaries for flashrom
# NOTE FOR FCHMMR: don't forget to add i386 binaries for flashrom/bucts