From 2c28759bcb5952bf75dba78b96afdb02bf9fbead Mon Sep 17 00:00:00 2001 From: Nils <> Date: Thu, 14 Jan 2021 21:40:30 +0100 Subject: [PATCH] different order of projects on the index site --- generate.bash | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/generate.bash b/generate.bash index 0391903..0dfb19a 100755 --- a/generate.bash +++ b/generate.bash @@ -15,7 +15,7 @@ cd temp #We loop over all projects several times, each stage of the generation. #Instead of doing one project fully at a time, creating one giant nested loop. #Administration first, the processing! -PROJECTS=(laborejo patroneo vico fluajho agordejo) #The order here is the order on the page. Each of these gets its own entry. +PROJECTS=(laborejo patroneo agordejo fluajho vico) #The order here is the order on the page. Each of these gets its own entry. PROJECTS_AS_STRING=$( IFS=$' '; echo "${PROJECTS[*]}" ) @@ -25,48 +25,48 @@ do GIT="https://git.laborejo.org/lss/$PROJECT.git" echo "$GIT" - if [ -d "$PROJECT" ]; then + if [ -d "$PROJECT" ]; then cd "$PROJECT" git pull - cd .. - else - git clone "$GIT" + cd .. + else + git clone "$GIT" fi done cd "$ROOTPATH" #reset for next step #Documentation, just a copy -for PROJECT in ${PROJECTS[*]} +for PROJECT in ${PROJECTS[*]} do cp -r "temp/$PROJECT/documentation/out" "out/documentation/$PROJECT" cp "static/images/$PROJECT.png" "out/documentation/$PROJECT/logo.png" done #Generate Menu. n^2 loop. For each project all projects -for PROJECT in ${PROJECTS[*]} +for PROJECT in ${PROJECTS[*]} do echo "" > "temp/$PROJECT/module_menu" #empty file #Index/Home is the same for all sub-pages. index is not included in the list so we do not care about the "this is the current page" highlight here. - echo "