From a8d78224c6ea9b943357902276de7a513d0fbd8d Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Mon, 4 Jun 2012 23:05:28 +0200 Subject: RHEL/Fedora: various updates --- redhat/genrpm.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'redhat/genrpm.sh') diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh index 45cffeee6..d80e8da36 100755 --- a/redhat/genrpm.sh +++ b/redhat/genrpm.sh @@ -1,11 +1,13 @@ #!/bin/bash cd "$( dirname "$0" )" +ARGS="" while [ $# -gt 0 ]; do case "$1" in - "--auto") AUTO=1;; - "--version") REQVERSION="$2"; shift;; + "--auto"|"-a") AUTO=1;; + "--version"|"-v") REQVERSION="$2"; shift;; + "--"*) ARGS="${ARGS} $1";; *) COMP="${1%%/}";; esac shift @@ -110,6 +112,7 @@ LOGFILE=/tmp/log.${COMP##*/} set -x ( rpmbuild -ba \ + ${ARGS} \ --define "_sourcedir ${PWD}/${COMP}" \ --define "_prefix ${PREFIX:-/opt/trinity}" \ --define "version ${VERSION:-3.5.13}" \ -- cgit v1.2.1