Add support for multi-package builds

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-08-11 14:10:10 +02:00
parent a81f53faf0
commit f338f32737
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

8
run.sh
View file

@ -36,7 +36,7 @@ gosu builder getkeys.sh
# Execute the build itself # Execute the build itself
gosu builder makepkg ${MAKEPKG_OPTS[@]} gosu builder makepkg ${MAKEPKG_OPTS[@]}
PACKAGE=$(ls *.pkg.tar.xz) # This should be only one file PACKAGE=($(ls *.pkg.tar.xz))
REPODB=$(find /repo -name '*.db.tar.xz') REPODB=$(find /repo -name '*.db.tar.xz')
if [ -z "${REPODB}" ]; then if [ -z "${REPODB}" ]; then
@ -45,7 +45,9 @@ if [ -z "${REPODB}" ]; then
exit 0 exit 0
fi fi
gosu builder mv ${PACKAGE}* /repo for pkg_file in "${PACKAGE[@]}"; do
gosu builder mv ${pkg_file}* /repo
cd /repo cd /repo
gosu builder repo-add ${REPOADD_OPTS[@]} ${REPODB} "${PACKAGE}" gosu builder repo-add ${REPOADD_OPTS[@]} ${REPODB} "${pkg_file}"
done