summaryrefslogtreecommitdiff
path: root/example_create.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_create.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_create.sh')
-rwxr-xr-xexample_create.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/example_create.sh b/example_create.sh
index 845caf8..c9a957a 100755
--- a/example_create.sh
+++ b/example_create.sh
@@ -49,7 +49,9 @@ for dir in "$reposdir/"*.git/; do
stagit -c ".stagit-build-cache" "$reposdir/$r"
# symlinks
- ln -sf log.html index.html
+ [ -f "about.html" ] \
+ && ln -sf about.html index.html \
+ || ln -sf log.html index.html
ln -sf "$reposdir/$r" ".git"
echo "done"