From 7af9953463c65fe2f02704e6bce815d830e58d7d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 14 Nov 2022 00:51:12 +0000 Subject: pragmatic system distribution guideline compliance osboot is now part of libreboot, and will soon shut down. libreboot now conforms to osboot policy. --- download | 42 ++++++------------------------------------ 1 file changed, 6 insertions(+), 36 deletions(-) (limited to 'download') diff --git a/download b/download index e5dcb3d6..c8d38109 100755 --- a/download +++ b/download @@ -5,7 +5,7 @@ # Copyright (C) 2014, 2015, 2020, 2021 Leah Rowe # Copyright (C) 2015 Patrick "P. J." McDermott # Copyright (C) 2015, 2016 Klemens Nanni -# Copyright (C) 2022, Caleb La Grange +# Copyright (C) 2022 Caleb La Grange # Copyright (C) 2022 Alper Nebi Yasak # # This program is free software: you can redistribute it and/or modify @@ -29,16 +29,6 @@ set -u -e ./resources/scripts/misc/versioncheck -# set this when you want to modify each coreboot tree -# for example, you want to test custom patches -# NODELETE= ./download coreboot -deletegit="true" -deleteblobs="true" -if [ "x${NODELETE+set}" = 'xset' ]; then - [ "x${NODELETE:-all}" = "xgit" ] && deletegit="false" - [ "x${NODELETE:-all}" = "xall" ] && deleteblobs="false" && deletegit="false" -fi - rm -f "build_error" download=resources/scripts/download @@ -68,9 +58,9 @@ help() { coreboot trees by default, but './download coreboot x60' will only download the coreboot tree required for the target: x60 - Each program download script should also accept the --help paramater to + Each program download script should also accept the --help parameter to display the usage of the script. - + Refer to the documentation for more information. EOF } @@ -91,15 +81,7 @@ shift 1 if [ "${program}" = "all" ]; then for downloadProgram in ${download}/*; do - if [ -f "${downloadProgram}" ]; then - if [ "${deleteblobs}" = "false" ]; then - NODELETE= "${downloadProgram}" - elif [ "${deletegit}" = "false" ]; then - NODELETE=git "${downloadProgram}" - else - "${downloadProgram}" - fi - fi + "${downloadProgram}" done exit 0 elif [ ! -f "${download}/${program}" ]; then @@ -108,21 +90,9 @@ elif [ ! -f "${download}/${program}" ]; then fi if [ $# -lt 1 ]; then - if [ "${deleteblobs}" = "false" ]; then - NODELETE= "${download}/${program}" - elif [ "${deletegit}" = "false" ]; then - NODELETE=git "${download}/${program}" - else - "${download}/${program}" - fi + "${download}/${program}" else - if [ "${deleteblobs}" = "false" ]; then - NODELETE= "${download}/${program}" $@ - elif [ "${deletegit}" = "false" ]; then - NODELETE=git "${download}/${program}" $@ - else - "${download}/${program}" $@ - fi + "${download}/${program}" $@ fi exit 0 -- cgit v1.2.1