2 # - Makes index for repositories in a single directory.
3 # - Makes static pages for each repository directory.
5 # NOTE, things to do manually (once):
6 # - copy style.css, logo.png and favicon.png manually, a style.css example
8 # - write clone url, for example "git://git.codemadness.org/dir" to the "url"
12 # - mkdir -p htmldir && cd htmldir
15 reposdir="/var/www/domains/git.codemadness.nl/home/src"
20 find . -maxdepth 1 -type d | grep -v "^.$" | sort | xargs stagit-index > "${curdir}/index.html"
22 # make files per repo.
24 find . -maxdepth 1 -type d | grep -v "^.$" | sort | while read -r dir; do
25 d=$(basename "${dir}")
26 printf "%s... " "${d}"
28 mkdir -p "${curdir}/${d}"
30 stagit -c ".cache" "${reposdir}/${d}"
33 ln -sf log.html index.html
34 ln -sf ../style.css style.css
35 ln -sf ../logo.png logo.png
36 ln -sf ../favicon.png favicon.png