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 be4c4d7b89a420190a10d3ed2aeb575a86eaef46..8eb53b43213df9d849cc92b9bebfcda502c20982 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##*/}