support gitweb subdirs
authorIan Kelling <ian@iankelling.org>
Fri, 23 Sep 2016 17:41:28 +0000 (10:41 -0700)
committerIan Kelling <ian@iankelling.org>
Fri, 23 Sep 2016 17:41:28 +0000 (10:41 -0700)
setup.sh

index be4c4d7..8eb53b4 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -158,8 +158,19 @@ _git_desc_readme() {
         break
     done < README*
 }
+
+dirs=()
+for d in $gitroot/*; do
+    if [[ -d $d && ! -L $d ]]; then
+        for sub in $d/*; do
+            dirs+=($sub)
+        done
+    else
+        dirs+=($d)
+    fi
+done
 gitweb_descriptions() {
-    for d in $gitroot/*; do
+    for d in ${dirs[@]}; do
         d=$(readlink -f $d)
         cd $d/..
         e ${PWD##*/}