script for making mirror

This commit is contained in:
Debucquoy Anthony 2023-04-12 01:50:12 +02:00
parent a76755e0f9
commit 045a7f13b9
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

15
update.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/sh
mkdir -p tonitch
export PKGDEST=$(pwd)/tonitch
packagelist=$(find . -maxdepth 1 -type d -printf '%P\n' | sed '/tonitch/d' | sed '/\./d')
for d in $packagelist
do
cd $d
makepkg
done
cd $PKGDEST
repo-add tonitch.db.tar.gz *.pkg.tar.zst