summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParabola git <git@parabola.nu>2014-12-28 03:38:37 +0000
committerParabola git <git@parabola.nu>2014-12-28 03:38:37 +0000
commit5cc4ed0cf2cde585c4ac3199be59caedb68bef61 (patch)
treecaead3435e004ad41f3deaca97bfa7150570105b
parentae7d155eda43ea467293dcd0b17b5caad0e5341e (diff)
Add a post-receive hook to generate agefiles for cgit
l---------abslibre/abslibre-mips64el.git/hooks/post-receive1
l---------abslibre/abslibre-pre-mips64el.git/hooks/post-receive1
l---------abslibre/abslibre.git/hooks/post-receive1
l---------abslibre/cross-mips64el-unknown-linux-gnu.git/hooks/post-receive1
l---------arch2parabola.git/hooks/post-receive1
l---------artwork.git/hooks/post-receive1
l---------autobuilder.git/hooks/post-receive1
l---------blacklist.git/hooks/post-receive1
l---------dbscripts.git/hooks/post-receive1
-rwxr-xr-xgit-hooks/post-receive.agefile9
l---------git-meta.git/hooks/post-receive1
-rwxr-xr-xhackers.git/hooks/post-receive4
l---------mkinitcpio-paralogo.git/hooks/post-receive1
l---------packages/devtools-par.git/hooks/post-receive1
l---------packages/jh.git/hooks/post-receive1
l---------packages/libretools.git/hooks/post-receive1
l---------packages/moz-normalize.git/hooks/post-receive1
l---------packages/parabola-gnome.git/hooks/post-receive1
l---------packages/parabolaiso.git/hooks/post-receive1
l---------packages/parabolaweb-utils.git/hooks/post-receive1
l---------packages/pbs-tools.git/hooks/post-receive1
l---------pacman2pacman.git/hooks/post-receive1
l---------paraboladocs.git/hooks/post-receive1
l---------parabolasocial.git/hooks/post-receive1
l---------parabolaweb.git/hooks/post-receive1
l---------parabolawiki.git/hooks/post-receive1
l---------paraboley.git/hooks/post-receive1
l---------parmanscripts.git/hooks/post-receive1
l---------pbot.git/hooks/post-receive1
l---------pbs.git/hooks/post-receive1
l---------radio.git/hooks/post-receive1
l---------repoindex.git/hooks/post-receive1
-rwxr-xr-xtidy-hooks14
-rwxr-xr-xupdate-agefiles12
l---------~lukeshu/hackers-nslcd.git/hooks/post-receive1
l---------~lukeshu/maven-dist.git/hooks/post-receive1
l---------~lukeshu/wiki-spam-tools.git/hooks/post-receive1
l---------~old/aif.git/hooks/post-receive1
l---------~old/archiso.git/hooks/post-receive1
l---------~old/chroottools.git/hooks/post-receive1
l---------~old/gitosis-admin.git/hooks/post-receive1
l---------~old/initscripts.git/hooks/post-receive1
l---------~old/issuetracker.git/hooks/post-receive1
l---------~old/libui-sh.git/hooks/post-receive1
l---------~old/linux-libre-2.6-LIBRE.git/hooks/post-receive1
l---------~old/parabola-archiso.git/hooks/post-receive1
l---------~old/parabolaiso.git/hooks/post-receive1
l---------~old/pbot.git/hooks/post-receive1
48 files changed, 83 insertions, 0 deletions
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