nichijou/cmake/regex_check.sh
2021-03-20 01:33:31 +01:00

22 lines
517 B
Bash
Executable file

#!/bin/bash
# intermediate script to support extra options for regex_check.sh
# current script dir
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
# support WERROR option
[[ $WERROR == "ON" ]] && set -e
# call regex_check.sh to check repo
"$SCRIPT_DIR/../cicd/style/regex_check.sh" \
-e '^build[^/]*/' \
-e '^.*\.svg$' \
-r '(^$)|(^.*[^[:cntrl:][:blank:]]$)' \
"$SCRIPT_DIR/.."
"$SCRIPT_DIR/../cicd/style/regex_check.sh" \
-e '^build[^/]*/' \
-r '(^$)|(^.*[^[:cntrl:][:blank:]]$)' \
"$SCRIPT_DIR/.."
exit 0