First version
[fnpdeploy.git] / deploy_setup / templates / post-update
1 #!/bin/bash
2 set -e
3
4
5 PROJECT_ROOT="`git config deploy.project-root || dirname "$(pwd)"`"
6 export DEPLOY_REF="`git symbolic-ref HEAD`"
7
8 for refname in "$@"
9 do
10         if [ "$refname" == "$DEPLOY_REF" ]
11         then
12                 cd "$PROJECT_ROOT"
13                 make release
14         fi
15 done
16