blob: 53693f21d35c320a91bb0161d7959f9c062563ea [file] [log] [blame]
Martin Roth0ad5fbd2020-12-24 12:06:38 -07001#!/usr/bin/env sh
Patrick Georgi55189c92020-05-10 20:09:31 +02002# SPDX-License-Identifier: GPL-2.0-or-later
Martin Roth44ef1672016-02-02 09:43:12 -07003#
4# DESCR: Verify that site-local is not in the coreboot repository
5#
6# Because site-local is intended for local use only, it should never be
7# pushed to coreboot.org. Even for committing it for local use, it's
8# recommended that it be kept in a separate repository, and pulled in
9# as a git submodule.
10
11LC_ALL=C export LC_ALL
12
Alex Thiessen73f19dc2018-01-16 23:05:48 +000013if [ -n "$(command -v git)" ] && \
14 [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]
15then
Martin Roth44ef1672016-02-02 09:43:12 -070016 if [ -n "$(git ls-files site-local/*)" ]; then
17 echo "Error: site-local must be kept separate from the coreboot repository."
18 fi
19fi