scripts: Fix installing deps
- Remove extra `then` to fix running this script - Update messages for system dependencies - Add `--progress` for submodule clones, which can get slow
This commit is contained in:
committed by
Jeremy Soller
parent
7a7bc80b8f
commit
07dfef8cb9
@ -11,8 +11,8 @@ trap 'msg "\x1B[31mFailed to install dependencies!"' ERR
|
|||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
|
|
||||||
|
|
||||||
|
msg "Installing system build dependencies"
|
||||||
if [[ "${ID}" =~ "debian" ]] || [[ "${ID_LIKE}" =~ "debian" ]]; then
|
if [[ "${ID}" =~ "debian" ]] || [[ "${ID_LIKE}" =~ "debian" ]]; then
|
||||||
msg "Installing system build dependencies"
|
|
||||||
sudo apt-get install \
|
sudo apt-get install \
|
||||||
avr-libc \
|
avr-libc \
|
||||||
avrdude \
|
avrdude \
|
||||||
@ -39,8 +39,6 @@ if [[ "${ID}" =~ "debian" ]] || [[ "${ID_LIKE}" =~ "debian" ]]; then
|
|||||||
uuid-dev \
|
uuid-dev \
|
||||||
zlib1g-dev
|
zlib1g-dev
|
||||||
elif [[ "${ID}" =~ "fedora" ]] || [[ "${ID_LIKE}" =~ "fedora" ]]; then
|
elif [[ "${ID}" =~ "fedora" ]] || [[ "${ID_LIKE}" =~ "fedora" ]]; then
|
||||||
then
|
|
||||||
msg "Installing system build dependencies"
|
|
||||||
sudo dnf group install c-development
|
sudo dnf group install c-development
|
||||||
sudo dnf install \
|
sudo dnf install \
|
||||||
avr-gcc \
|
avr-gcc \
|
||||||
@ -63,8 +61,8 @@ then
|
|||||||
systemd-devel \
|
systemd-devel \
|
||||||
zlib-devel
|
zlib-devel
|
||||||
else
|
else
|
||||||
msg "Please add support for your distribution to:"
|
msg "Unknown system ID: ${ID}"
|
||||||
msg "scripts/deps.sh"
|
msg "Please add support for your distribution to: $0"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -75,7 +73,7 @@ msg "Downloading GIT LFS artifacts"
|
|||||||
git lfs pull
|
git lfs pull
|
||||||
|
|
||||||
msg "Initializing submodules"
|
msg "Initializing submodules"
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive --progress
|
||||||
|
|
||||||
msg "Installing coreboot commit hook"
|
msg "Installing coreboot commit hook"
|
||||||
curl -sSf https://review.coreboot.org/tools/hooks/commit-msg \
|
curl -sSf https://review.coreboot.org/tools/hooks/commit-msg \
|
||||||
|
Reference in New Issue
Block a user