From: Ian Kelling Date: Fri, 23 Sep 2016 17:41:28 +0000 (-0700) Subject: support gitweb subdirs X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=b74f400c071b86972f5382d358cd6d9b359de49c;p=iankelling.org support gitweb subdirs --- diff --git a/setup.sh b/setup.sh index be4c4d7..8eb53b4 100755 --- 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##*/}