From d9bb9b83773ef582ee20a4a81d7ef9b304e1b291 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 12 Aug 2007 18:46:54 +0000 Subject: [PATCH] Improved git to install gitweb in $docdir --- develop/git/git.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/develop/git/git.conf b/develop/git/git.conf index 1cb0ed223..a4c902f1c 100644 --- a/develop/git/git.conf +++ b/develop/git/git.conf @@ -16,3 +16,13 @@ if pkginstalled asciidoc; then var_append makeopt ' ' 'doc' var_append makeinstopt ' ' 'install-doc' fi + +gitweb_install() { + local dir="$root$docdir/gitweb" + + mkdir -p "$dir" + + cp -vf gitweb/*.{cgi,png,css} "$dir/" + cp -vf gitweb/README "$dir/" +} +hook_add postmake 5 'gitweb_install'