#!/bin/sh
URL=https://armlfs.urja.dev/git
set -e
for g in $(cat sources-gits.txt); do
cd /sources
echo /sources/$g
if [ -e "$g" ]; then
continue
fi
#exit 1
git clone $URL/sources/$g.git
done
repo_gits() {
for dir in $(cat order | cut -d ' ' -f 1 | sort | uniq); do
echo $1 $dir
[ -e "$dir" ] && continue || true
[ -L "$dir" ] && continue || true
#exit 1
git clone $URL/$1-pkgbuilds/$dir.git
chown -R builder:builder $dir
done
}
for repo in core base kde5; do
cd /sources/$repo-pkgbuilds
repo_gits $repo
done
echo Done.