Specify release number and allow subpackages

master
Daniel Berteaud 12 years ago
parent ddf94681c4
commit 68bbd9023c
  1. 5
      submit

@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
PACKAGE=$(basename $(pwd)) PACKAGE=$(basename $(pwd))
VERSION=$(rpm -q --qf "%{version}" --specfile $PACKAGE.spec) VERSION=$(rpm -q --qf "%{version}\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)
@ -37,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-*.src.rpm $DIST ssh -o ControlPath=$SOCKET -l $ME $SERVER buildrpm rpmbuild/SRPMS/$PACKAGE-$VERSION-$RELEASE.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