Robert Kaussow
23c7458552
All checks were successful
continuous-integration/drone/push Build is passing
15 lines
367 B
Bash
Executable File
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 "$@"
|