Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
0ac335783This file is pinned to the selected release. Download the original to open it in your design tool.
#!/bin/bash
# Copyright 2020 ETH Zurich and University of Bologna.
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
# SPDX-License-Identifier: SHL-0.51
set -e
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
# Get all Bender.yml and format them. Exclude the vendor directory and hidden
# dirs.
# Unfortunately we also need to exclude the `mkdocs.yml` file because the
# formatter would remove the double exclamation mark. Preventing `mkdocs` from
# loading the modules correctly.
find $ROOT \
-not \( -path $ROOT/'hw/vendor' -prune \) \
-not -path '*/\.bender/*' \
-not -name 'mkdocs.yml' \
-name '*.yml' | xargs yamlfmt -w