Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions development/buildcheck
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,25 @@ info() {
fi
}

SCRIPT_NAME=$(basename "$0")
GLOBAL_HOOKS=$(git config --global core.hooksPath 2>/dev/null)
if [ -n "$GLOBAL_HOOKS" ]; then
GLOBAL_SCRIPTS=$(dirname "$GLOBAL_HOOKS")/scripts
if [ -x "$GLOBAL_SCRIPTS/$SCRIPT_NAME" ]; then
info "Using global pre-commit script: $GLOBAL_SCRIPTS/$SCRIPT_NAME"
exec "$GLOBAL_SCRIPTS/$SCRIPT_NAME" "$@"
fi
fi
SYSTEM_HOOKS=$(git config --system core.hooksPath 2>/dev/null)
if [ -n "$SYSTEM_HOOKS" ]; then
SYSTEM_SCRIPTS=$(dirname "$SYSTEM_HOOKS")/scripts
if [ -x "$SYSTEM_SCRIPTS/$SCRIPT_NAME" ]; then
info "Using system pre-commit script: $SYSTEM_SCRIPTS/$SCRIPT_NAME"
exec "$SYSTEM_SCRIPTS/$SCRIPT_NAME" "$@"
fi
fi
info "Using local $SCRIPT_NAME"

SOLUTION=$(find "$PWD" -type f -iname "*.sln" | head -1)
[ -z "$SOLUTION" ] && SOLUTION=$(find "$PWD" -type f -iname "*.slnx" | head -1)
[ -z "$SOLUTION" ] && die "No Solution found in $(pwd)"
Expand Down
19 changes: 19 additions & 0 deletions development/buildtest
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@ info() {

BASEDIR=$(dirname "$(readlink -f "$0")")

SCRIPT_NAME=$(basename "$0")
GLOBAL_HOOKS=$(git config --global core.hooksPath 2>/dev/null)
if [ -n "$GLOBAL_HOOKS" ]; then
GLOBAL_SCRIPTS=$(dirname "$GLOBAL_HOOKS")/scripts
if [ -x "$GLOBAL_SCRIPTS/$SCRIPT_NAME" ]; then
info "Using global pre-commit script: $GLOBAL_SCRIPTS/$SCRIPT_NAME"
buildcheck && exec "$GLOBAL_SCRIPTS/$SCRIPT_NAME" "$@"
fi
fi
SYSTEM_HOOKS=$(git config --system core.hooksPath 2>/dev/null)
if [ -n "$SYSTEM_HOOKS" ]; then
SYSTEM_SCRIPTS=$(dirname "$SYSTEM_HOOKS")/scripts
if [ -x "$SYSTEM_SCRIPTS/$SCRIPT_NAME" ]; then
info "Using system pre-commit script: $SYSTEM_SCRIPTS/$SCRIPT_NAME"
buildcheck && exec "$SYSTEM_SCRIPTS/$SCRIPT_NAME" "$@"
fi
fi
info "Using local $SCRIPT_NAME"

RULESET_ADJUSTMENT_FILE=
TEST_BENCHMARKS=
TEST_INTEGRATION=
Expand Down
Loading