From 1457e5f6a4198555725f8e5eebed1748efb9b334 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 3 Jun 2012 18:13:31 +0200 Subject: [PATCH] =?UTF-8?q?el5=20par=20d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- submit | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/submit b/submit index 99155e3..d959bef 100755 --- a/submit +++ b/submit @@ -5,6 +5,11 @@ VERSION=$(rpm -q --qf "%{version}" --specfile $PACKAGE.spec) ME=$(whoami) BRANCH=$(git branch | grep '*' | cut -d' ' -f2) +DIST=$1 +if [ -z $DIST ]; then + DIST="el5" +fi + # Generate ChangeLog 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 @@ -26,6 +31,6 @@ scp $PACKAGE.spec $ME@build.firewall-services.com:rpmbuild/SPECS/ # And build 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