nqrduck-devtools/pull_all.sh

44 lines
934 B
Bash
Raw Normal View History

2024-05-06 18:25:34 +00:00
#!/bin/bash
REPOS=(
"nqrduck"
"nqrduck-spectrometer"
"nqrduck-spectrometer-limenqr"
"nqrduck-spectrometer-simulator"
"ATM"
"nqr-blochsimulator"
"nqrduck-measurement"
"nqrduck-autotm"
"nqrduck-broadband"
"nqrduck-pulseprogrammer"
"LimeDriverBindings"
"LimeDriver"
"nqrduckumentation"
2024-05-31 08:01:22 +00:00
"quackseq"
"quackseq-simulator"
"quackseq-limenqr"
2024-05-06 18:25:34 +00:00
)
# Pull the current repository
echo "Pulling changes in nqrduck-devtools..."
git pull
2024-05-06 18:25:34 +00:00
cd ..
# Iterate through the repositories and run git pull on each one
for repo in "${REPOS[@]}"; do
echo "Pulling changes in $repo..."
cd "$repo" || { echo "Failed to enter $repo, skipping..."; continue; }
if [ ! -d ".git" ]; then
echo "This directory doesn't seem to be a git repository: $repo"
continue
fi
git pull
echo "Done pulling $repo."
cd ..
done
echo "All repositories have been updated."