3 # SPDX-License-Identifier: GPL-2.0-only
5 # DESCR: Check that saved config files are miniconfigs
9 SYMBOLS
='CONFIG_ARCH_\|CONFIG_MAINBOARD_HAS_'
11 # Use git grep if the code is in a git repo, otherwise use grep.
12 if [ -n "$(command -v git)" ] && \
13 [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]
20 #look for a couple of things that should only be set by select keywords
22 $
($GREP "$SYMBOLS" configs
) ; do \
23 echo "Error: $file seems to be a full config"; \