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'