summaryrefslogtreecommitdiff
path: root/hooks/post-receive
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/post-receive')
-rw-r--r--hooks/post-receive18
1 files changed, 1 insertions, 17 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 066a4b1..d977771 100644
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -1,30 +1,14 @@
#!/usr/bin/env bash
-source ~/git-shell-variables.sh
-source ~/bin/libgithook.sh
-
export LANG=en_US.utf8
export LC_ALL=en_US.utf8
-load_file_actions
-CACHE=$(use_cache ${NEWREV})
-cd "${CACHE}"
-
for i in ${FILES_A[@]} ${FILES_M[@]}; do
d="$(dirname ${i})"
f="$(basename ${i})"
- if [ "$(basename ${d})" = 'hooks' ]; then
- printf 'Deploying hook updates\n'
- cp -v "${i}" "${SRC}/hooks/"
- elif [ "${f%.*}" = 'resume' ]; then
+ if [ "${f%.*}" = 'resume' ]; then
printf 'Generating and deploying resume\n'
make embed
install -v -D out/resume.html "${WEB}/oper.io.git/master/resume.html"
fi
done
-
-cd "${SRC}"
-if [ "${SRC}" != "${CACHE}" ]; then
- printf 'Cleaning up cache\n'
- rm -rf "${CACHE}"
-fi

Generated by cgit