MoncoForge:

stagit-scripts

scripts to aid in the management of stagit sites
git clone https://moncoforge.com/stagit-scripts
Download | Log | Files | Refs | README

copy-hook (207B)


      1 #!/bin/sh
      2 
      3 pubrepodir="ENTER-YOUR-GIT-DIRECTORY"
      4 bindir="ENTER-STAGIT-BIN-DIRECTORY"
      5 
      6 for d in "$pubrepodir"/*.git; do
      7 	cp "$bindir"/post-receive-stagit $d/hooks/
      8 	chmod +x $d/hooks/post-receive-stagit
      9 done