2023-05-02 10:56:37 +05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
REPO="/disk/github/active/Melawy/melawy-repo/x86_64/"
|
|
|
|
|
|
|
|
echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt
|
|
|
|
|
|
|
|
CWD=$(cat pwd.txt)
|
|
|
|
|
2023-05-06 21:49:59 +05:00
|
|
|
for package_dir in $(find . -mindepth 1 -maxdepth 2 -type d)
|
2023-05-02 10:56:37 +05:00
|
|
|
do
|
|
|
|
cd $CWD/$package_dir
|
2023-05-06 21:49:59 +05:00
|
|
|
if [[ -f "PKGBUILD" ]]; then
|
|
|
|
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force
|
|
|
|
package_file=$(ls -1 | grep ".zst")
|
|
|
|
cp -v $CWD/$package_dir/$package_file $REPO/
|
|
|
|
fi
|
2023-05-02 10:56:37 +05:00
|
|
|
cd $CWD
|
|
|
|
done
|