hhvn.uk

Website, gopher, etc
git clone https://hhvn.uk/hhvn.uk
git clone git://hhvn.uk/hhvn.uk
Log | Files | Refs | Submodules

lnpost-recv.rc (200B)


      1 #!/bin/rc
      2 
      3 hook = `$nl{realpath `$nl{dirname $0} ^ /post-recv.rc}
      4 git = `$nl{dirname $0} ^ /../git
      5 
      6 for (d in $git/*) {
      7 	p = $d/hooks/post-receive
      8 	if (!test -L $p) {
      9 		rm -f $p
     10 		ln -s $hook $p
     11 	}
     12 }