From daaf10430bf0f37592f50d36b1d544f8a0019bd2 Mon Sep 17 00:00:00 2001 From: Antonio Ragagnin <antonio.ragagnin@inaf.it> Date: Sat, 11 Jan 2025 19:57:48 +0100 Subject: [PATCH] fix cloneall --- cloneall.bash | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cloneall.bash b/cloneall.bash index 08cf0f6..2f382dd 100755 --- a/cloneall.bash +++ b/cloneall.bash @@ -3,7 +3,8 @@ set -vex REPOS=(${REPOS:=gitlab-profile core io integrate octree domain PM}) : ${SESSION_NAME:=hw} - +: ${HW_BUILD=$PWD/build/} +: ${HW_DATA=$PWD/build/} while getopts "cptlr:" opt do @@ -21,18 +22,17 @@ if [ -z "$clona" ] && [ -z "$pyinsta" ] && [ -z "$tmuxa" ] && [ -z "$linka" ];th exit 1 fi -for REPO in "${REPOS[@]}"; do - echo [ $REPO ] -done -#exit 0 - if [ ! -z "$clona" ]; then + if [[ ! -f .env ]]; then + echo "export HW_BUILD=$HW_BUILD" > .env + echo "export HW_DATA=$HW_DATA" >> .env + echo "export DEBUG=1" >> .env + fi + . .env [[ ! -d "venv" ]] && python3 -mvenv venv . venv/bin/activate pip install autopep8 pip install matplotlib - touch .env - for REPO in "${REPOS[@]}"; do [[ ! -d "$REPO" ]] && git clone ssh://git@git.ia2.inaf.it/hotwheels/$REPO.git -- GitLab