1
0
mirror of https://bitbucket.org/svk28/rac-gui synced 2024-12-04 18:46:52 +00:00

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

This commit is contained in:
Sergey Kalinin 2020-07-23 19:18:50 +00:00
parent 5aeb8d5db0
commit 4f96e7ae52

View File

@ -10,13 +10,12 @@ pipelines:
- step: - step:
script: script:
- WORKDIR=/home/rpmbuild - WORKDIR=/home/rpmbuild
#- ls -R -la ${WORKDIR} - cd ${WORKDIR}
- VERSION=$(grep Version rac_gui.tcl | grep -oE '\b[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}\b') - git clone https://bitbucket.org/svk28/rac-gui.git
- RELEASE=$(grep Release rac_gui.tcl | grep -oE '\b[0-9]{1,3}\b') - VERSION=$(grep Version ${WORKDIR}/rac-gui/rac_gui.tcl | grep -oE '\b[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}\b')
- mkdir ${WORKDIR}/rac-gui - RELEASE=$(grep Release ${WORKDIR}/rac-gui/rac_gui.tcl | grep -oE '\b[0-9]{1,3}\b')
- cp -R * ${WORKDIR}/rac-gui - tar czf ${WORKDIR}/rpmbuild/SOURCES/rac-gui-${VERSION}-${RELEASE}.tar.gz rac-gui
- tar czf ${WORKDIR}/rpmbuild/SOURCES/rac-gui-${VERSION}-${RELEASE}.tar.gz ${WORKDIR}/rac-gui - cp ${WORKDIR}/rac-gui/rac_gui.spec ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec
- 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/.*Version:.*/Version:\t${VERSION}/" ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec
- sed -i "s/.*Release:.*/Release:\t${RELEASE}/" ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec - sed -i "s/.*Release:.*/Release:\t${RELEASE}/" ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec
- rpmbuild -ba ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec - rpmbuild -ba ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec