X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=setup.sh;h=94dffe29c1f62aa8d04ec3f36c978bcd706a85bd;hp=be4c4d7b89a420190a10d3ed2aeb575a86eaef46;hb=512e27c6bf1c40085f9fcc4c9769ef5b8ba6f4f9;hpb=daefd301f9bdc0df7b7f4d77ca249291e9388d9b diff --git a/setup.sh b/setup.sh index be4c4d7..94dffe2 100755 --- a/setup.sh +++ b/setup.sh @@ -72,8 +72,7 @@ our @extra_breadcrumbs = ( ); our \$home_link_str = 'git'; our \$site_footer = '$PWD/_site/gitweb-footer.html'; -push @stylesheets, "/gitweb-site.css"; -push @stylesheets, "/common.css"; +push @stylesheets, "/css/gitweb-site.css"; our \$favicon = '/assets/favicon.png'; # default is 25, cuts off descriptions. our \$projects_list_description_width = 40; @@ -158,8 +157,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##*/}