Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
- #!/bin/sh
- #for debugging
- #set -ex
- echo "copying scritps"
- TMP="$(mktemp -d)"
- git --work-tree="$TMP" checkout -f main
- # copy main scripts to projects
- for dir in ../*
- do
- cp "$TMP/post-receive" "$dir/hooks/"
- cp "$TMP/aux.sh" "$dir/hooks/"
- done
- # copy dovel hook
- cp "$TMP/receive-dovel.email" "$HOME/.config/dovel/hooks/"
- cp "$TMP/aux.sh" "$HOME/.config/dovel/hooks/"
- # for this repo copy scripts
- mv hooks/post-receive hooks/post-receive-all
- cp "$TMP/post-receive-scripts" hooks/post-receive
- echo "cleaning up TMP"
- rm -fr "$TMP"
- echo "running post-receive-all"
- . hooks/post-receive-all