bitbucket-pipelines.yml отредактирован онлайн на Bitbucket

This commit is contained in:
Sergey Kalinin 2020-07-23 19:05:54 +00:00
parent d1ac489b09
commit a601edffa8

View File

@ -10,10 +10,12 @@ pipelines:
- step:
script:
- WORKDIR=/home/rpmbuild
- ls -R ${WORKDIR}
#- ls -R -la ${WORKDIR}
- VERSION=$(grep Version rac_gui.tcl | grep -oE '\b[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}\b')
- RELEASE=$(grep Release rac_gui.tcl | grep -oE '\b[0-9]{1,3}\b')
- tar czf ${WORKDIR}/rpmbuild/SOURCES/rac-gui-${VERSION}-${RELEASE}.tar.gz *
- mkdir rac-gui
- mv * rac-gui
- tar czf ${WORKDIR}/rpmbuild/SOURCES/rac-gui-${VERSION}-${RELEASE}.tar.gz rac-gui
- cp rac_gui.spec ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec
- sed -i "s/.*Version:.*/Version:\t${VERSION}/" ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec
- sed -i "s/.*Release:.*/Release:\t${RELEASE}/" ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec