hhvn.uk

Website, gopher, etc
Log | Files | Refs | Submodules

commit 49b080ca06bdd70b5b7f1496e49a2b2d97e2aecc
parent 392e8d785781c6ec1019bb90f905df83908c62da
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 27 Nov 2022 20:32:26 +0000

Run generate.rc on git push

Diffstat:
Agen/lnpost-recv.rc | 12++++++++++++
Agen/post-recv.rc | 4++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/gen/lnpost-recv.rc b/gen/lnpost-recv.rc @@ -0,0 +1,12 @@ +#!/bin/rc + +hook = `$nl{realpath `$nl{dirname $0} ^ /post-recv.rc} +git = `$nl{dirname $0} ^ /../git + +for (d in $git/*) { + p = $d/hooks/post-receive + if (!test -L $p) { + rm -f $p + ln -s $hook $p + } +} diff --git a/gen/post-recv.rc b/gen/post-recv.rc @@ -0,0 +1,4 @@ +#!/bin/rc + +# I am v laz +`$nl{dirname `$nl{realpath $0}} ^ /generate.rc