diff options
author | Leah Rowe <leah@libreboot.org> | 2023-08-17 11:41:58 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-08-17 11:50:06 +0100 |
commit | 0848622799b8c627cd650d848ffa7d592d80b26d (patch) | |
tree | 54c9c187d704abb83ba5c7a40f4bce2355b0e165 /resources/scripts/build/release | |
parent | 8459e33bbcbe70cc08f449c3d46f1310c65680a1 (diff) |
remove download scripts, consolidate into script
most of them were just calling the gitclone script,
so remove them.
the grub script was treating gnulib as a dependency.
i've now added the ability to grab 1 dependency, in
the gitclone script (it should be expanded later to
support multiple dependencies)
the gitclone script has been renamed to "fetch".
the "fetch_trees" script does more or less the same
thing, but calls "fetch" and handles multiple revisions
if a project needs that
this is more efficient, and slightly reduces the code
size of lbmk!
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources/scripts/build/release')
-rwxr-xr-x | resources/scripts/build/release/src | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/resources/scripts/build/release/src b/resources/scripts/build/release/src index 95c0036f..2b985156 100755 --- a/resources/scripts/build/release/src +++ b/resources/scripts/build/release/src @@ -23,14 +23,14 @@ set -u -e projectname="$(cat projectname)" -trees_gitclone_list="coreboot u-boot" -simple_gitclone_list="flashrom grub memtest86plus seabios me_cleaner uefitool" -simple_gitclone_list="${simple_gitclone_list} bios_extract biosutilities" +trees_fetch_list="coreboot u-boot" +simple_fetch_list="flashrom grub memtest86plus seabios me_cleaner uefitool" +simple_fetch_list="${simple_fetch_list} bios_extract biosutilities" dirlist="resources util" # do not add blobs directory here. it's handled below -filelist="lbmk blobutil modify download build README.md COPYING Makefile update" -filelist="${filelist} version versiondate projectname .gitcheck gitclone" +filelist="lbmk blobutil modify build README.md COPYING Makefile update" +filelist="${filelist} version versiondate projectname .gitcheck fetch" filelist="${filelist} fetch_trees" version="version-unknown" @@ -77,19 +77,19 @@ create_release_directory() download_modules() { - for modname in ${trees_gitclone_list}; do + for modname in ${trees_fetch_list}; do [ ! -d "${modname}" ] && \ ./fetch_trees ${modname} done - for modname in ${simple_gitclone_list}; do + for modname in ${simple_fetch_list}; do [ ! -d "${modname}/" ] && \ - ./download ${modname} + ./fetch ${modname} done } copy_files() { - for dir in ${simple_gitclone_list} ${dirlist}; do + for dir in ${simple_fetch_list} ${dirlist}; do cp -R "${dir}/" "${srcdir}/" done |