el5 par défaut

master
Daniel Berteaud 13 years ago
parent 65b1737226
commit 1457e5f6a4
  1. 7
      submit

@ -5,6 +5,11 @@ VERSION=$(rpm -q --qf "%{version}" --specfile $PACKAGE.spec)
ME=$(whoami) ME=$(whoami)
BRANCH=$(git branch | grep '*' | cut -d' ' -f2) BRANCH=$(git branch | grep '*' | cut -d' ' -f2)
DIST=$1
if [ -z $DIST ]; then
DIST="el5"
fi
# Generate ChangeLog # Generate ChangeLog
git log --format=%H --grep="update changelog" > ignore_hash git log --format=%H --grep="update changelog" > ignore_hash
git log --format=%H | grep -v -f ignore_hash | git log --pretty --stdin --no-walk > CHANGELOG.git git log --format=%H | grep -v -f ignore_hash | git log --pretty --stdin --no-walk > CHANGELOG.git
@ -26,6 +31,6 @@ scp $PACKAGE.spec $ME@build.firewall-services.com:rpmbuild/SPECS/
# And build # And build
ssh -l $ME build.firewall-services.com rpmbuild -bs --nodeps rpmbuild/SPECS/$PACKAGE.spec ssh -l $ME build.firewall-services.com rpmbuild -bs --nodeps rpmbuild/SPECS/$PACKAGE.spec
ssh -l $ME build.firewall-services.com buildrpm rpmbuild/SRPMS/$PACKAGE-$VERSION-*.src.rpm $1 ssh -l $ME build.firewall-services.com buildrpm rpmbuild/SRPMS/$PACKAGE-$VERSION-*.src.rpm $DIST
ssh -l $ME build.firewall-services.com rm -f rpmbuild/SPECS/$PACKAGE.spec rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz rpmbuild/SRPMS/$PACKAGE-$VERSION*.src.rpm ssh -l $ME build.firewall-services.com rm -f rpmbuild/SPECS/$PACKAGE.spec rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz rpmbuild/SRPMS/$PACKAGE-$VERSION*.src.rpm

Loading…
Cancel
Save