rpm-build/run.sh
Paolo Asperti 5a5d95bb43
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
no need to set working dir
2019-04-25 20:17:35 +02:00

13 lines
472 B
Bash
Executable File

#!/bin/bash
set -e
echo "# macros" > /root/.rpmmacros && \
echo "%_topdir /$PWD" >> /root/.rpmmacros && \
echo "%_sourcedir %{_topdir}" >> /root/.rpmmacros && \
echo "%_builddir %{_topdir}" >> /root/.rpmmacros && \
echo "%_specdir %{_topdir}" >> /root/.rpmmacros && \
echo "%_rpmdir %{_topdir}" >> /root/.rpmmacros && \
echo "%_srcrpmdir %{_topdir}" >> /root/.rpmmacros && \
rpmdev-setuptree