This repository has been archived on 2023-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
rpmbuild/overlay/usr/local/bin/rpmbuild
Robert Kaussow 23c7458552
All checks were successful
continuous-integration/drone/push Build is passing
fix condition to check if local patch directory is present
2020-06-12 09:11:00 +02:00

15 lines
367 B
Bash
Executable File

#!/usr/bin/env sh
set -eo pipefail
mkdir -p "${RPMBUILD_BASE_DIR%/}/dist"
mkdir -p "${RPMBUILD_BASE_DIR%/}/dist"
echo '%_topdir '"${RPMBUILD_BASE_DIR%/}"'/dist' > /root/.rpmmacros
rpmdev-setuptree
if [ -d "${RPMBUILD_BASE_DIR%/}/patch/" ]; then
rsync -q -av "${RPMBUILD_BASE_DIR%/}/patch/" "${RPMBUILD_BASE_DIR%/}/dist/SOURCES"
fi
exec /usr/bin/rpmbuild "$@"