1#!/bin/bash 2set -e 3 4# When called from openbmc-build-scripts, the `pwd` could be anywhere, but 5# the root of the repo is passed in the first argument. Switch to the repo 6# root so npm/git run in the right place. 7if [ -n "$1" ]; then 8 cd "$1" 9else 10 # This script is in the root of the repo so we can use it to find the root. 11 cd "$(dirname "${BASH_SOURCE[0]}")" 12fi 13python3 scripts/autojson.py configurations 14scripts/generate_config_list.sh 15scripts/generate_schema_list.sh 16