Debian Codegraph @

dev/tools/check-overlays.sh

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #!/usr/bin/env bash
2
3 REDBOLD="\033[31;1m"
4 RESET="\033[0m"
5
6 function redprint
7 {
8 if [ "$COQ_CI_COLOR" ]; then
9 printf "$REDBOLD%s$RESET\n" "$1"
10 else
11 printf '%s\n' "$1"
12 fi
13 }
14
15 for f in $(git ls-files "dev/ci/user-overlays/")
16 do
17 if ! { [[ "$f" = dev/ci/user-overlays/README.md ]] || [[ "$f" == *.sh ]]; }
18 then
19 >&2 redprint "Bad overlay '$f'."
20 >&2 echo "User overlays need to have extension .sh to be picked up!"
21 exit 1
22 fi
23 done