savannah-hackers-public
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Savannah-hackers-public] Re: Git hooks and setup for GNU Herds


From: Jim Meyering
Subject: Re: [Savannah-hackers-public] Re: Git hooks and setup for GNU Herds
Date: Sun, 24 May 2009 22:33:25 +0200

Davi Leal wrote:
> Sylvain Beucler wrote:
>> In addition, Davi Leal of the gnuherds project would like the cia and
>> email-on-commit hooks. Can you enable them?
>
> IMHO it should not be needed to contact to the Savannah administrators to
> enable these features.  It should be possible enable it directly in the
> Savannah webapp.
>
>
> I should add a task ticket to record this feature request so that we can
> follow improving Savannah.  You can assign it to me, and I will work out it
> when I can:  6 or 7 months.
>
> I will join the Savannah-Hackers project so I can be assigned this task.

Hi Sylvan,

I wrote this Makefile:

dest_dir= /usr/local/bin
gprh = git-post-receive-hook

all:

# The cvt-* targets are to convert symlinks that point into /srv/git/hooks
# so that they point instead at the scripts now installed in $(dest_dir).
cvt-links-cia:
        find /srv/git/*.git/hooks -printf '%p %l\n' \
          | sed -n 's, /srv/git/hooks/git-cia,,p' \
          | xargs --no-run-if-empty -i -n 1 sh -c 'f={}; chattr -i $$(dirname $\
$f); ln -sf $(dest_dir)/git-cia $$f; chattr +i $$(dirname $$f)'

cvt-links-pr:
        find /srv/git/*.git/hooks -printf '%p %l\n' \
          | sed -n 's, /srv/git/hooks/post-receive,,p' \
          | xargs --no-run-if-empty -i -n 1 sh -c 'f={}; chattr -i $$(dirname $\
$f); ln -sf $(dest_dir)/$(gprh) $$f; chattr +i $$(dirname $$f)'

install:
        install git-cia $(dest_dir)
        install post-receive $(dest_dir)/$(gprh)
-------------------

Then ran "make install" followed by the two cvt-* targets.
Affected projects (re git-cia):

  lightning
  sed
  smalltalk

ones using post-receive:

  autoconf
  automake
  coreutils
  gnulib
  libtool
  m4
  mailutils

Though there should be no detectable change.

While /srv/git/hooks should now be movable, I haven't
moved it, in case some other scripts still point at it.
I searched in *.git/hooks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]