Ajout des hooks embarqués dans un projet
This commit is contained in:
14
hooks/common/run-project-hooks
Executable file
14
hooks/common/run-project-hooks
Executable 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"
|
4
hooks/postbuild/debian/run-project-hooks
Executable file
4
hooks/postbuild/debian/run-project-hooks
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
$(readlink -f $DIR/../../common/run-project-hooks) postbuild
|
4
hooks/prebuild/debian/run-project-hooks
Executable file
4
hooks/prebuild/debian/run-project-hooks
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
$(readlink -f $DIR/../../common/run-project-hooks) prebuild
|
Reference in New Issue
Block a user