sisyphus/arch/pkg/tdpeuter/DOMAKEPKG

20 lines
475 B
Text
Raw Normal View History

2022-10-26 22:29:04 +02:00
#!/usr/bin/env bash
2022-10-26 23:00:39 +02:00
ver=$( grep "^pkgver=" "./PKGBUILD" | sed "s/^pkgver=\(.*\)$/\1/" )
>&2 echo "Building version ${ver}"
while read pkg ; do
2022-10-26 22:47:50 +02:00
match=$(find . -name "*${pkg}-${ver}*")
>&2 echo "Adding ${match}"
repo-add tdpeuter.db.tar.gz ${match}
2022-10-26 23:00:39 +02:00
done <<< $( makepkg -f | grep Creating | sed "s/^.*\"\(.*\)\".*$/\1/g" )
2022-10-26 22:29:04 +02:00
rm tdpeuter.db tdpeuter.files
cp tdpeuter.db.tar.gz tdpeuter.db
cp tdpeuter.files.tar.gz tdpeuter.files
git add --all
git commit
git push