sisyphus/archpkg/tdpeuter/DOMAKEPKG

19 lines
475 B
Bash
Executable file

#!/usr/bin/env bash
ver=$( grep "^pkgver=" "./PKGBUILD" | sed "s/^pkgver=\(.*\)$/\1/" )
>&2 echo "Building version ${ver}"
while read pkg ; do
match=$(find . -name "*${pkg}-${ver}*")
>&2 echo "Adding ${match}"
repo-add tdpeuter.db.tar.gz ${match}
done <<< $( makepkg -f | grep Creating | sed "s/^.*\"\(.*\)\".*$/\1/g" )
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