summaryrefslogtreecommitdiff
path: root/example_post-receive.sh
diff options
context:
space:
mode:
authorOscar Benedito <oscar@oscarbenedito.com>2020-07-31 16:56:52 +0200
committerOscar Benedito <oscar@oscarbenedito.com>2020-08-11 01:38:01 +0200
commit1fdbc7e8ef4025e50678261ca670daca85ac298c (patch)
tree3b0862499e130b2e266877a6da8d4dd1ba2ea305 /example_post-receive.sh
parent0a81a2fac1b84fb5ee9870fafb3d62975eaf0f96 (diff)
Add about page for repos with REAMDE
This commits adds a new dependency: md4c (https://github.com/mity/md4c). Now stagit will generate an about page for each repo with a README, converting it to HTML if it is a Markdown file.
Diffstat (limited to 'example_post-receive.sh')
-rwxr-xr-xexample_post-receive.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/example_post-receive.sh b/example_post-receive.sh
index 46eb898..d0373ef 100755
--- a/example_post-receive.sh
+++ b/example_post-receive.sh
@@ -57,7 +57,9 @@ cd "${destdir}/${d}" || exit 1
# make pages
stagit -c "${cachefile}" "${reposdir}/${r}"
-ln -sf log.html index.html
+[ -f "about.html" ] \
+ && ln -sf about.html index.html \
+ || ln -sf log.html index.html
ln -sf "${dir}" .git
# make index