From 5cc4ed0cf2cde585c4ac3199be59caedb68bef61 Mon Sep 17 00:00:00 2001 From: Parabola git Date: Sun, 28 Dec 2014 03:38:37 +0000 Subject: Add a post-receive hook to generate agefiles for cgit --- abslibre/abslibre-mips64el.git/hooks/post-receive | 1 + abslibre/abslibre-pre-mips64el.git/hooks/post-receive | 1 + abslibre/abslibre.git/hooks/post-receive | 1 + .../hooks/post-receive | 1 + arch2parabola.git/hooks/post-receive | 1 + artwork.git/hooks/post-receive | 1 + autobuilder.git/hooks/post-receive | 1 + blacklist.git/hooks/post-receive | 1 + dbscripts.git/hooks/post-receive | 1 + git-hooks/post-receive.agefile | 9 +++++++++ git-meta.git/hooks/post-receive | 1 + hackers.git/hooks/post-receive | 4 ++++ mkinitcpio-paralogo.git/hooks/post-receive | 1 + packages/devtools-par.git/hooks/post-receive | 1 + packages/jh.git/hooks/post-receive | 1 + packages/libretools.git/hooks/post-receive | 1 + packages/moz-normalize.git/hooks/post-receive | 1 + packages/parabola-gnome.git/hooks/post-receive | 1 + packages/parabolaiso.git/hooks/post-receive | 1 + packages/parabolaweb-utils.git/hooks/post-receive | 1 + packages/pbs-tools.git/hooks/post-receive | 1 + pacman2pacman.git/hooks/post-receive | 1 + paraboladocs.git/hooks/post-receive | 1 + parabolasocial.git/hooks/post-receive | 1 + parabolaweb.git/hooks/post-receive | 1 + parabolawiki.git/hooks/post-receive | 1 + paraboley.git/hooks/post-receive | 1 + parmanscripts.git/hooks/post-receive | 1 + pbot.git/hooks/post-receive | 1 + pbs.git/hooks/post-receive | 1 + radio.git/hooks/post-receive | 1 + repoindex.git/hooks/post-receive | 1 + tidy-hooks | 14 ++++++++++++++ update-agefiles | 12 ++++++++++++ ~lukeshu/hackers-nslcd.git/hooks/post-receive | 1 + ~lukeshu/maven-dist.git/hooks/post-receive | 1 + ~lukeshu/wiki-spam-tools.git/hooks/post-receive | 1 + ~old/aif.git/hooks/post-receive | 1 + ~old/archiso.git/hooks/post-receive | 1 + ~old/chroottools.git/hooks/post-receive | 1 + ~old/gitosis-admin.git/hooks/post-receive | 1 + ~old/initscripts.git/hooks/post-receive | 1 + ~old/issuetracker.git/hooks/post-receive | 1 + ~old/libui-sh.git/hooks/post-receive | 1 + ~old/linux-libre-2.6-LIBRE.git/hooks/post-receive | 1 + ~old/parabola-archiso.git/hooks/post-receive | 1 + ~old/parabolaiso.git/hooks/post-receive | 1 + ~old/pbot.git/hooks/post-receive | 1 + 48 files changed, 83 insertions(+) create mode 120000 abslibre/abslibre-mips64el.git/hooks/post-receive create mode 120000 abslibre/abslibre-pre-mips64el.git/hooks/post-receive create mode 120000 abslibre/abslibre.git/hooks/post-receive create mode 120000 abslibre/cross-mips64el-unknown-linux-gnu.git/hooks/post-receive create mode 120000 arch2parabola.git/hooks/post-receive create mode 120000 artwork.git/hooks/post-receive create mode 120000 autobuilder.git/hooks/post-receive create mode 120000 blacklist.git/hooks/post-receive create mode 120000 dbscripts.git/hooks/post-receive create mode 100755 git-hooks/post-receive.agefile create mode 120000 git-meta.git/hooks/post-receive create mode 120000 mkinitcpio-paralogo.git/hooks/post-receive create mode 120000 packages/devtools-par.git/hooks/post-receive create mode 120000 packages/jh.git/hooks/post-receive create mode 120000 packages/libretools.git/hooks/post-receive create mode 120000 packages/moz-normalize.git/hooks/post-receive create mode 120000 packages/parabola-gnome.git/hooks/post-receive create mode 120000 packages/parabolaiso.git/hooks/post-receive create mode 120000 packages/parabolaweb-utils.git/hooks/post-receive create mode 120000 packages/pbs-tools.git/hooks/post-receive create mode 120000 pacman2pacman.git/hooks/post-receive create mode 120000 paraboladocs.git/hooks/post-receive create mode 120000 parabolasocial.git/hooks/post-receive create mode 120000 parabolaweb.git/hooks/post-receive create mode 120000 parabolawiki.git/hooks/post-receive create mode 120000 paraboley.git/hooks/post-receive create mode 120000 parmanscripts.git/hooks/post-receive create mode 120000 pbot.git/hooks/post-receive create mode 120000 pbs.git/hooks/post-receive create mode 120000 radio.git/hooks/post-receive create mode 120000 repoindex.git/hooks/post-receive create mode 100755 tidy-hooks create mode 100755 update-agefiles create mode 120000 ~lukeshu/hackers-nslcd.git/hooks/post-receive create mode 120000 ~lukeshu/maven-dist.git/hooks/post-receive create mode 120000 ~lukeshu/wiki-spam-tools.git/hooks/post-receive create mode 120000 ~old/aif.git/hooks/post-receive create mode 120000 ~old/archiso.git/hooks/post-receive create mode 120000 ~old/chroottools.git/hooks/post-receive create mode 120000 ~old/gitosis-admin.git/hooks/post-receive create mode 120000 ~old/initscripts.git/hooks/post-receive create mode 120000 ~old/issuetracker.git/hooks/post-receive create mode 120000 ~old/libui-sh.git/hooks/post-receive create mode 120000 ~old/linux-libre-2.6-LIBRE.git/hooks/post-receive create mode 120000 ~old/parabola-archiso.git/hooks/post-receive create mode 120000 ~old/parabolaiso.git/hooks/post-receive create mode 120000 ~old/pbot.git/hooks/post-receive diff --git a/abslibre/abslibre-mips64el.git/hooks/post-receive b/abslibre/abslibre-mips64el.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/abslibre/abslibre-mips64el.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/abslibre/abslibre-pre-mips64el.git/hooks/post-receive b/abslibre/abslibre-pre-mips64el.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/abslibre/abslibre-pre-mips64el.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/abslibre/abslibre.git/hooks/post-receive b/abslibre/abslibre.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/abslibre/abslibre.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/abslibre/cross-mips64el-unknown-linux-gnu.git/hooks/post-receive b/abslibre/cross-mips64el-unknown-linux-gnu.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/abslibre/cross-mips64el-unknown-linux-gnu.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/arch2parabola.git/hooks/post-receive b/arch2parabola.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/arch2parabola.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/artwork.git/hooks/post-receive b/artwork.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/artwork.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/autobuilder.git/hooks/post-receive b/autobuilder.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/autobuilder.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/blacklist.git/hooks/post-receive b/blacklist.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/blacklist.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/dbscripts.git/hooks/post-receive b/dbscripts.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/dbscripts.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/git-hooks/post-receive.agefile b/git-hooks/post-receive.agefile new file mode 100755 index 0000000..91d98ec --- /dev/null +++ b/git-hooks/post-receive.agefile @@ -0,0 +1,9 @@ +#!/bin/bash + +agefile="$(git rev-parse --git-dir)"/info/web/last-modified + +mkdir -p "$(dirname "$agefile")" && +git for-each-ref \ + --sort=-committerdate --count=1 \ + --format='%(committerdate:iso8601)' \ + > "$agefile" diff --git a/git-meta.git/hooks/post-receive b/git-meta.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/git-meta.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/hackers.git/hooks/post-receive b/hackers.git/hooks/post-receive index 2f24768..76938f1 100755 --- a/hackers.git/hooks/post-receive +++ b/hackers.git/hooks/post-receive @@ -1,5 +1,9 @@ #!/bin/bash +for file in ~/git-hooks/post-receive.*; do + "$file" "$@" +done + unset GIT_DIR cd /var/cache/parabola-hackers && diff --git a/mkinitcpio-paralogo.git/hooks/post-receive b/mkinitcpio-paralogo.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/mkinitcpio-paralogo.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/packages/devtools-par.git/hooks/post-receive b/packages/devtools-par.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/packages/devtools-par.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/packages/jh.git/hooks/post-receive b/packages/jh.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/packages/jh.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/packages/libretools.git/hooks/post-receive b/packages/libretools.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/packages/libretools.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/packages/moz-normalize.git/hooks/post-receive b/packages/moz-normalize.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/packages/moz-normalize.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/packages/parabola-gnome.git/hooks/post-receive b/packages/parabola-gnome.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/packages/parabola-gnome.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/packages/parabolaiso.git/hooks/post-receive b/packages/parabolaiso.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/packages/parabolaiso.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/packages/parabolaweb-utils.git/hooks/post-receive b/packages/parabolaweb-utils.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/packages/parabolaweb-utils.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/packages/pbs-tools.git/hooks/post-receive b/packages/pbs-tools.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/packages/pbs-tools.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/pacman2pacman.git/hooks/post-receive b/pacman2pacman.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/pacman2pacman.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/paraboladocs.git/hooks/post-receive b/paraboladocs.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/paraboladocs.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/parabolasocial.git/hooks/post-receive b/parabolasocial.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/parabolasocial.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/parabolaweb.git/hooks/post-receive b/parabolaweb.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/parabolaweb.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/parabolawiki.git/hooks/post-receive b/parabolawiki.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/parabolawiki.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/paraboley.git/hooks/post-receive b/paraboley.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/paraboley.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/parmanscripts.git/hooks/post-receive b/parmanscripts.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/parmanscripts.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/pbot.git/hooks/post-receive b/pbot.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/pbot.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/pbs.git/hooks/post-receive b/pbs.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/pbs.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/radio.git/hooks/post-receive b/radio.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/radio.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/repoindex.git/hooks/post-receive b/repoindex.git/hooks/post-receive new file mode 120000 index 0000000..ce0ab29 --- /dev/null +++ b/repoindex.git/hooks/post-receive @@ -0,0 +1 @@ +../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/tidy-hooks b/tidy-hooks new file mode 100755 index 0000000..4b195f5 --- /dev/null +++ b/tidy-hooks @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +cd + +IFS='' +find . -not -path '*/.*' -path '*.git' -type d | +while read -r git_dir; do + mkdir -p -- "${git_dir}/hooks" + find "${git_dir}/hooks" \( -name '*.sample' -o -type l \) -delete + if ! [[ -f "${git_dir}/hooks/post-receive" ]]; then + ln -srv git-hooks/post-receive.agefile "${git_dir}/hooks/post-receive" + fi +done diff --git a/update-agefiles b/update-agefiles new file mode 100755 index 0000000..7b3708f --- /dev/null +++ b/update-agefiles @@ -0,0 +1,12 @@ +#!/bin/bash +set -e + +cd + +IFS='' +find . -not -path '*/.*' -path '*.git' -type d | +while read -r git_dir; do + pushd "$git_dir" + ~/git-hooks/post-receive.agefile + popd >/dev/null +done diff --git a/~lukeshu/hackers-nslcd.git/hooks/post-receive b/~lukeshu/hackers-nslcd.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~lukeshu/hackers-nslcd.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~lukeshu/maven-dist.git/hooks/post-receive b/~lukeshu/maven-dist.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~lukeshu/maven-dist.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~lukeshu/wiki-spam-tools.git/hooks/post-receive b/~lukeshu/wiki-spam-tools.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~lukeshu/wiki-spam-tools.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/aif.git/hooks/post-receive b/~old/aif.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/aif.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/archiso.git/hooks/post-receive b/~old/archiso.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/archiso.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/chroottools.git/hooks/post-receive b/~old/chroottools.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/chroottools.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/gitosis-admin.git/hooks/post-receive b/~old/gitosis-admin.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/gitosis-admin.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/initscripts.git/hooks/post-receive b/~old/initscripts.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/initscripts.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/issuetracker.git/hooks/post-receive b/~old/issuetracker.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/issuetracker.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/libui-sh.git/hooks/post-receive b/~old/libui-sh.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/libui-sh.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/linux-libre-2.6-LIBRE.git/hooks/post-receive b/~old/linux-libre-2.6-LIBRE.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/linux-libre-2.6-LIBRE.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/parabola-archiso.git/hooks/post-receive b/~old/parabola-archiso.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/parabola-archiso.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/parabolaiso.git/hooks/post-receive b/~old/parabolaiso.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/parabolaiso.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file diff --git a/~old/pbot.git/hooks/post-receive b/~old/pbot.git/hooks/post-receive new file mode 120000 index 0000000..9cbd669 --- /dev/null +++ b/~old/pbot.git/hooks/post-receive @@ -0,0 +1 @@ +../../../git-hooks/post-receive.agefile \ No newline at end of file -- cgit v1.2.3-54-g00ecf