2019-01-14 02:50:14 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-09-27 06:49:17 +02:00
|
|
|
VERVIS='https://vervis.peers.community/repos'
|
2019-01-14 02:50:14 +01:00
|
|
|
|
2024-07-18 12:57:41 +02:00
|
|
|
DEPS="6r4Ao ssh"
|
2019-01-14 02:50:14 +01:00
|
|
|
|
|
|
|
mkdir -p lib
|
|
|
|
cd lib
|
2022-09-27 06:49:17 +02:00
|
|
|
echo $DEPS | while read -r dep
|
|
|
|
do
|
|
|
|
slug=$(echo $dep | cut --fields=1 --delimiter=' ')
|
|
|
|
name=$(echo $dep | cut --fields=2 --delimiter=' ')
|
|
|
|
|
|
|
|
echo
|
|
|
|
if [ -d "$name" ]; then
|
|
|
|
echo "Updating dependency $name"
|
|
|
|
darcs pull --repodir="$name" --all
|
2019-01-14 02:50:14 +01:00
|
|
|
else
|
2022-09-27 06:49:17 +02:00
|
|
|
echo "Cloning dependency '$name' from $VERVIS/$slug"
|
|
|
|
darcs clone "$VERVIS/$slug" "$name"
|
2019-01-14 02:50:14 +01:00
|
|
|
fi
|
|
|
|
done
|