summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2020-12-01 14:37:24 -0700
committerAaron Ball <nullspoon@oper.io>2020-12-01 14:38:46 -0700
commit706bd202178507ef3afb1d7e7788a120d8a52cc1 (patch)
tree79f29c33d0592e04ede76ec30570f5a0e349eb61
downloadcrux-ports-arm64-706bd202178507ef3afb1d7e7788a120d8a52cc1.tar.gz
crux-ports-arm64-706bd202178507ef3afb1d7e7788a120d8a52cc1.tar.xz
Initial commit of post-receive hook
-rw-r--r--hooks/post-receive16
1 files changed, 16 insertions, 0 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
new file mode 100644
index 0000000..15039d4
--- /dev/null
+++ b/hooks/post-receive
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+dest=${WEB}/oper.io.services/crux-ports-arm64
+
+# Copy files from working cache to destination
+cp -r ./* ${dest}/
+
+for i in ${FILES_E[*]}; do
+ printf '[git] Updating %s\n' "${i}"
+done
+
+for i in ${FILES_D[*]}; do
+ printf '[git] Removing %s\n' "${i}"
+done
+
+# Regen repo httpup files
+httpup-repgen "${dest}"

Generated by cgit