Fix release num when submitting with another distro

master
Daniel Berteaud 12 years ago
parent 68bbd9023c
commit 7304e43b26
  1. 4
      submit

@ -2,7 +2,7 @@
PACKAGE=$(basename $(pwd)) PACKAGE=$(basename $(pwd))
VERSION=$(rpm -q --qf "%{version}\n" --specfile $PACKAGE.spec | head -1) VERSION=$(rpm -q --qf "%{version}\n" --specfile $PACKAGE.spec | head -1)
RELEASE=$(rpm -q --qf "%{release}\n" --specfile $PACKAGE.spec | head -1) #RELEASE=$(rpm -q --qf "%{release}\n" --specfile $PACKAGE.spec | head -1)
ME=$(whoami) ME=$(whoami)
SERVER=build.firewall-services.com SERVER=build.firewall-services.com
BRANCH=$(git branch | grep '*' | cut -d' ' -f2) BRANCH=$(git branch | grep '*' | cut -d' ' -f2)
@ -38,7 +38,7 @@ scp -o ControlPath=$SOCKET $PACKAGE.spec $ME@$SERVER:rpmbuild/SPECS/
# And build # And build
ssh -o ControlPath=$SOCKET -l $ME $SERVER rpmbuild -bs --nodeps rpmbuild/SPECS/$PACKAGE.spec ssh -o ControlPath=$SOCKET -l $ME $SERVER rpmbuild -bs --nodeps rpmbuild/SPECS/$PACKAGE.spec
ssh -o ControlPath=$SOCKET -l $ME $SERVER buildrpm rpmbuild/SRPMS/$PACKAGE-$VERSION-$RELEASE.src.rpm $DIST ssh -o ControlPath=$SOCKET -l $ME $SERVER buildrpm rpmbuild/SRPMS/$PACKAGE-$VERSION-*.src.rpm $DIST
ssh -o ControlPath=$SOCKET -l $ME $SERVER rm -f rpmbuild/SPECS/$PACKAGE.spec rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz rpmbuild/SRPMS/$PACKAGE-$VERSION*.src.rpm ssh -o ControlPath=$SOCKET -l $ME $SERVER rm -f rpmbuild/SPECS/$PACKAGE.spec rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz rpmbuild/SRPMS/$PACKAGE-$VERSION*.src.rpm
rm -rf $TMPDIR rm -rf $TMPDIR

Loading…
Cancel
Save