From a601edffa802fb4161c9e06b0d3ce2ba60874d3e Mon Sep 17 00:00:00 2001 From: Sergey Kalinin Date: Thu, 23 Jul 2020 19:05:54 +0000 Subject: [PATCH] =?UTF-8?q?bitbucket-pipelines.yml=20=D0=BE=D1=82=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=20=D0=BE=D0=BD=D0=BB=D0=B0=D0=B9=D0=BD=20=D0=BD=D0=B0=20?= =?UTF-8?q?Bitbucket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bitbucket-pipelines.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 9681a1a..f17cbda 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -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