1#!/usr/bin/env bash 2# 3# Copyright 2024 The Hafnium Authors. 4# 5# Use of this source code is governed by a BSD-style 6# license that can be found in the LICENSE file or at 7# https://opensource.org/licenses/BSD-3-Clause. 8 9source "$(dirname ${BASH_SOURCE[0]})/../build/bash/common.inc" 10 11# Set all environment variables 12init_build 13 14# 15# Make sure the code looks good. 16# 17 18make check-format 19make checkpatch 20 21# 22# Make sure there's not lint. 23# 24 25make tidy 26if is_repo_dirty 27then 28 echo "Run \`make tidy\' locally to fix this." 29 exit 1 30fi 31 32# 33# Make sure all the files have a license. 34# 35 36make license_ 37if is_repo_dirty 38then 39 echo "Run \`make license_\' locally to fix this." 40 exit 1 41fi 42