blob: d701ee07b3b55b7cbeaab5665b07927b88659469 [file] [log] [blame]
Martin Roth44ef1672016-02-02 09:43:12 -07001#!/bin/sh
2# This file is part of the coreboot project.
3#
4# Copyright 2016 Google Inc.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; version 2 of the License, or (at your option)
9# any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# DESCR: Verify that site-local is not in the coreboot repository
17#
18# Because site-local is intended for local use only, it should never be
19# pushed to coreboot.org. Even for committing it for local use, it's
20# recommended that it be kept in a separate repository, and pulled in
21# as a git submodule.
22
23LC_ALL=C export LC_ALL
24
Alex Thiessen73f19dc2018-01-16 23:05:48 +000025if [ -n "$(command -v git)" ] && \
26 [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]
27then
Martin Roth44ef1672016-02-02 09:43:12 -070028 if [ -n "$(git ls-files site-local/*)" ]; then
29 echo "Error: site-local must be kept separate from the coreboot repository."
30 fi
31fi