Ajout des hooks embarqués dans un projet

This commit is contained in:
2017-03-28 14:08:29 +02:00
parent 6b8f6148bb
commit caac9056fa
4 changed files with 30 additions and 3 deletions

14
hooks/common/run-project-hooks Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
step=$1
hook=src/.tamarin/$step
if [ ! -f "$hook" ] || [ ! -x "$hook" ]; then
tamarin_info "No project hook (or not executable) for \"$step\"... Skipping."
exit
fi
tamarin_info "Project hook found for \"$step\". Running it..."
"$hook"